From 58af02f0746befaf84f77e70aff7f9521f68b15f Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 11 Dec 2013 15:19:54 +0100 Subject: C++: release more futures. The CPPEditorWidget retained two futures, as did the attached future watchers retained them too. Together, each future and the watcher held on to a complete snapshot that would only get released when another future was set. This could result into retaining old snapshots in editors that were invisible/unused for long. Change-Id: I1133e857c620437b4a69b9dad468f6bd458304b8 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpptoolseditorsupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolseditorsupport.h') diff --git a/src/plugins/cpptools/cpptoolseditorsupport.h b/src/plugins/cpptools/cpptoolseditorsupport.h index f9ba876256..1d6179e5d8 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.h +++ b/src/plugins/cpptools/cpptoolseditorsupport.h @@ -132,7 +132,7 @@ signals: void documentUpdated(); void diagnosticsChanged(); void semanticInfoUpdated(CppTools::SemanticInfo); - void highlighterStarted(QFuture *, unsigned revision); + void highlighterStarted(QFuture, unsigned revision); private slots: void onMimeTypeChanged(); -- cgit v1.2.1