From b88ea10937228bf5c71a58834a4a64650fedb577 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 12 Jul 2009 06:44:55 +0000 Subject: [PATCH] - Fixed memory leak in search engine --- Changelog | 1 + src/searchEngine.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog b/Changelog index 51c715cf7..179567cc1 100644 --- a/Changelog +++ b/Changelog @@ -5,6 +5,7 @@ - BUGFIX: Fixed compilation problems with Qt 4.3 - BUGFIX: Percentages no longer disapear with default cleanlooks style - BUGFIX: Cleanly fixed popup menus position in lists (no more workarounds) + - BUGFIX: Fixed memory leak in search engine * Sun Apr 5 2009 - Christophe Dumez - v1.3.3 - BUGFIX: Fixed Web UI torrent upload form diff --git a/src/searchEngine.cpp b/src/searchEngine.cpp index 36db50dfc..daea7f427 100644 --- a/src/searchEngine.cpp +++ b/src/searchEngine.cpp @@ -177,6 +177,7 @@ void SearchEngine::on_search_button_clicked(){ // verify the max size of the history if(searchHistory.size() > SEARCHHISTORY_MAXSIZE) searchHistory = searchHistory.mid(searchHistory.size()/2,searchHistory.size()/2); + delete searchCompleter; searchCompleter = new QCompleter(searchHistory, this); searchCompleter->setCaseSensitivity(Qt::CaseInsensitive); search_pattern->setCompleter(searchCompleter);