aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basefilefind.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2011-09-19 10:29:54 +0200
committerEike Ziller <eike.ziller@nokia.com>2011-09-20 12:01:33 +0200
commitd52d4ccd93531e8438894e10ea804acbd7242334 (patch)
treeaa5fb5bf42391948a42d6e6b00a2584c7bf5d3e9 /src/plugins/texteditor/basefilefind.h
parent9b8b1ad3dbb9e8e86e96b1f0332f2533907e7956 (diff)
Delete the watcher to free the qfuture and its resources.
Change-Id: I4847c23e99aeabb99d3bb557b70a4985b3675b97 Reviewed-on: http://codereview.qt-project.org/5145 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.h')
-rw-r--r--src/plugins/texteditor/basefilefind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h
index d3505d0da49..be7bf1ddc27 100644
--- a/src/plugins/texteditor/basefilefind.h
+++ b/src/plugins/texteditor/basefilefind.h
@@ -106,7 +106,7 @@ private:
QPointer<Find::SearchResult> m_currentSearch;
int m_currentSearchCount;
- QFutureWatcher<Utils::FileSearchResultList> m_watcher;
+ QFutureWatcher<Utils::FileSearchResultList> *m_watcher;
bool m_isSearching;
QPointer<Find::IFindSupport> m_currentFindSupport;