From 91f90a841fce947728e6c36e7fb923579d979cdc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 1 Feb 2012 12:35:19 +0100 Subject: [PATCH] zoom: reset result sets (major leak) --- src/filter_zoom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index f30b518..0d5349a 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -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) -- 1.7.10.4