SyntaxHighlighter: Fix leaking

Change-Id: Icd9e6cb18facbcb28692db114b952e96a66e2836
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Artem Sokolovskii
2024-01-08 12:33:38 +01:00
parent 0618df9ea2
commit 03bce22663
3 changed files with 12 additions and 1 deletions

View File

@@ -62,6 +62,12 @@ public:
{
}
~TextDocumentPrivate()
{
if (m_highlighterRunner)
m_highlighterRunner->deleteLater();
}
MultiTextCursor indentOrUnindent(const MultiTextCursor &cursor, bool doIndent, const TabSettings &tabSettings);
void resetRevisions();
void updateRevisions();