summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-09-11 11:40:37 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-09-23 09:13:44 +0200
commitb14172cc5a7a7961f57dd9f8d80bcc770b20d74a (patch)
tree428d097eb8b1de2f8008a7a614d4127c0ed9b97b /src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp
parentece3f97f9031057835447f3771136d308dfee075 (diff)
downloadqt-creator-b14172cc5a7a7961f57dd9f8d80bcc770b20d74a.tar.gz
CppEditor: Fix leaking AssistInterface
...in VirtualFunctionsAssistProcessor. Change-Id: Ic53d1ba92a5ca396055f4727839a89835d881e8d Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp')
-rw-r--r--src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp b/src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp
index ad9a31b67b..281ca5aa41 100644
--- a/src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp
+++ b/src/plugins/cppeditor/cppvirtualfunctionassistprovider.cpp
@@ -143,8 +143,10 @@ public:
return new VirtualFunctionProposal(m_params.cursorPosition, items, m_params.openInNextSplit);
}
- IAssistProposal *perform(const AssistInterface *) QTC_OVERRIDE
+ IAssistProposal *perform(const AssistInterface *assistInterface) QTC_OVERRIDE
{
+ delete assistInterface;
+
QTC_ASSERT(m_params.function, return 0);
QTC_ASSERT(m_params.staticClass, return 0);
QTC_ASSERT(!m_params.snapshot.isEmpty(), return 0);