From 8a0b3815df67b450c25c6ec5022a85cdd9818106 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 13 Apr 2023 08:06:51 +0200 Subject: [PATCH] TextEditor: fix leaking TextSuggestion Change-Id: I6f8b27e339219880cf9ade42a1e70e6dafb625b1 Reviewed-by: Eike Ziller --- src/plugins/texteditor/textdocumentlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/textdocumentlayout.cpp b/src/plugins/texteditor/textdocumentlayout.cpp index c38c75bd5e0..f40290b393d 100644 --- a/src/plugins/texteditor/textdocumentlayout.cpp +++ b/src/plugins/texteditor/textdocumentlayout.cpp @@ -357,7 +357,7 @@ TextSuggestion *TextBlockUserData::suggestion() const void TextBlockUserData::clearSuggestion() { - m_suggestion.release(); + m_suggestion.reset(); } void TextBlockUserData::addMark(TextMark *mark)