diff options
author | David Schulz <david.schulz@qt.io> | 2020-05-14 08:18:32 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-05-14 10:44:57 +0000 |
commit | 755de9f86adf5b05e6af43aa4b32844389ac0322 (patch) | |
tree | afc7e6ba8711db5302e18ad5fa7808267413bbe3 /src/plugins/texteditor/codeassist/codeassistant.cpp | |
parent | 738726d656e83f6ba8262aab62d81ee074ff3f12 (diff) | |
download | qt-creator-755de9f86adf5b05e6af43aa4b32844389ac0322.tar.gz |
Editor: delete processor after canceling
Set a null proposal has the potential to restart the processor
in combination with the invalidateCurrentRequestData from this
cancelCurrentRequest will result in a restarted processor that is not
tracked via m_asyncProcessor.
Change-Id: Ia0e0d49564170a1e705994933d07e00c23f24f5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/texteditor/codeassist/codeassistant.cpp')
-rw-r--r-- | src/plugins/texteditor/codeassist/codeassistant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/codeassist/codeassistant.cpp b/src/plugins/texteditor/codeassist/codeassistant.cpp index 3c61903f0d..ce90f64b48 100644 --- a/src/plugins/texteditor/codeassist/codeassistant.cpp +++ b/src/plugins/texteditor/codeassist/codeassistant.cpp @@ -292,7 +292,7 @@ void CodeAssistantPrivate::cancelCurrentRequest() } if (m_asyncProcessor) { m_asyncProcessor->cancel(); - m_asyncProcessor->setAsyncProposalAvailable(nullptr); + delete m_asyncProcessor; } invalidateCurrentRequestData(); } |