summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/codeassist/codeassistant.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-05-14 08:18:32 +0200
committerDavid Schulz <david.schulz@qt.io>2020-05-14 10:44:57 +0000
commit755de9f86adf5b05e6af43aa4b32844389ac0322 (patch)
treeafc7e6ba8711db5302e18ad5fa7808267413bbe3 /src/plugins/texteditor/codeassist/codeassistant.cpp
parent738726d656e83f6ba8262aab62d81ee074ff3f12 (diff)
downloadqt-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.cpp2
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();
}