mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 17:12:31 -06:00
- Fixed memory leak in search engine
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- BUGFIX: Fixed compilation problems with Qt 4.3
|
- BUGFIX: Fixed compilation problems with Qt 4.3
|
||||||
- BUGFIX: Percentages no longer disapear with default cleanlooks style
|
- BUGFIX: Percentages no longer disapear with default cleanlooks style
|
||||||
- BUGFIX: Cleanly fixed popup menus position in lists (no more workarounds)
|
- 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
|
* Sun Apr 5 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.3.3
|
||||||
- BUGFIX: Fixed Web UI torrent upload form
|
- BUGFIX: Fixed Web UI torrent upload form
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ void SearchEngine::on_search_button_clicked(){
|
|||||||
// verify the max size of the history
|
// verify the max size of the history
|
||||||
if(searchHistory.size() > SEARCHHISTORY_MAXSIZE)
|
if(searchHistory.size() > SEARCHHISTORY_MAXSIZE)
|
||||||
searchHistory = searchHistory.mid(searchHistory.size()/2,searchHistory.size()/2);
|
searchHistory = searchHistory.mid(searchHistory.size()/2,searchHistory.size()/2);
|
||||||
|
delete searchCompleter;
|
||||||
searchCompleter = new QCompleter(searchHistory, this);
|
searchCompleter = new QCompleter(searchHistory, this);
|
||||||
searchCompleter->setCaseSensitivity(Qt::CaseInsensitive);
|
searchCompleter->setCaseSensitivity(Qt::CaseInsensitive);
|
||||||
search_pattern->setCompleter(searchCompleter);
|
search_pattern->setCompleter(searchCompleter);
|
||||||
|
|||||||
Reference in New Issue
Block a user