diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-06-27 09:21:46 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-06-28 12:35:09 +0000 |
commit | d870bab95c04786dc0ee5d8d44d5fad484b89a48 (patch) | |
tree | c30f54fb62dc8a0f04e7c106ae63dedc9de157c6 /src/plugins/cppeditor/cppuseselectionsupdater.h | |
parent | 22829c1906850d66bb8d37247448b183a3d95109 (diff) |
CppEditor: Cancel runner in ~CppUseSelectionsUpdater
...otherwise an already destructed QTextDocument might be accessed in
the ClangCodeModel::Internal::IpcReceiver::references.
Task-number: QTCREATORBUG-18459
Change-Id: I1868b2fd3a64341794f83eea6c4eeb7c2c1af812
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppuseselectionsupdater.h')
-rw-r--r-- | src/plugins/cppeditor/cppuseselectionsupdater.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppuseselectionsupdater.h b/src/plugins/cppeditor/cppuseselectionsupdater.h index b247436285..478a816f98 100644 --- a/src/plugins/cppeditor/cppuseselectionsupdater.h +++ b/src/plugins/cppeditor/cppuseselectionsupdater.h @@ -44,6 +44,7 @@ class CppUseSelectionsUpdater : public QObject public: explicit CppUseSelectionsUpdater(TextEditor::TextEditorWidget *editorWidget); + ~CppUseSelectionsUpdater(); void scheduleUpdate(); void abortSchedule(); |