diff options
| author | Leandro Melo <leandro.melo@nokia.com> | 2011-09-07 14:02:31 +0200 |
|---|---|---|
| committer | Leandro T. C. Melo <leandro.melo@nokia.com> | 2011-09-07 14:42:16 +0200 |
| commit | e15443e9523df0e40414b1baf7d8182f641f7f2c (patch) | |
| tree | 43113a66b11d66bdcb56bcb609ca75a8ea5273c2 /src/plugins/cpptools/cppcompletionassist.cpp | |
| parent | 1edf045a0e5bba46cf6b9e0b2d23bfa2808387ad (diff) | |
| download | qt-creator-e15443e9523df0e40414b1baf7d8182f641f7f2c.tar.gz | |
Code assist: Fix memory leak in completion
One fix is in the runner, which is part of the completion
engine itself. The other is specific for C++.
Task-number: QTCREATORBUG-5947
Change-Id: Ib8fff1eb5adad1ffb2a11da66c50b545e1457df8
Reviewed-on: http://codereview.qt.nokia.com/4355
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletionassist.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppcompletionassist.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletionassist.cpp b/src/plugins/cpptools/cppcompletionassist.cpp index 6409758de1..c158561780 100644 --- a/src/plugins/cpptools/cppcompletionassist.cpp +++ b/src/plugins/cpptools/cppcompletionassist.cpp @@ -776,6 +776,7 @@ IAssistProposal *CppCompletionAssistProcessor::createContentProposal() } } } else { + delete *it; it = m_completions.erase(it); } } |
