- Fixed memory leak in search engine

This commit is contained in:
Christophe Dumez
2009-07-12 06:44:55 +00:00
parent 9b29302d42
commit b88ea10937
2 changed files with 2 additions and 0 deletions

View File

@@ -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 <chris@qbittorrent.org> - v1.3.3
- BUGFIX: Fixed Web UI torrent upload form

View File

@@ -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);