zoom: reset result sets (major leak)
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 1 Feb 2012 11:35:19 +0000 (12:35 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 1 Feb 2012 11:35:19 +0000 (12:35 +0100)
src/filter_zoom.cpp

index f30b518..0d5349a 100644 (file)
@@ -279,6 +279,7 @@ void yf::Zoom::Backend::connect(std::string zurl,
 void yf::Zoom::Backend::search(ZOOM_query q, Odr_int *hits,
                                int *error, char **addinfo, ODR odr)
 {
+    ZOOM_resultset_destroy(m_resultset);
     m_resultset = ZOOM_connection_search(m_connection, q);
     get_zoom_error(error, addinfo, odr);
     if (*error == 0)