forked from qt-creator/qt-creator
TextEditor: fix leaking TextSuggestion
Change-Id: I6f8b27e339219880cf9ade42a1e70e6dafb625b1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -357,7 +357,7 @@ TextSuggestion *TextBlockUserData::suggestion() const
|
|||||||
|
|
||||||
void TextBlockUserData::clearSuggestion()
|
void TextBlockUserData::clearSuggestion()
|
||||||
{
|
{
|
||||||
m_suggestion.release();
|
m_suggestion.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextBlockUserData::addMark(TextMark *mark)
|
void TextBlockUserData::addMark(TextMark *mark)
|
||||||
|
Reference in New Issue
Block a user