Fix memory leak

This commit is contained in:
James Graham
2026-01-30 14:54:05 +00:00
parent cad90d0c4c
commit a3cd0c0e8d

View File

@@ -36,7 +36,7 @@ private:
QTextCharFormat m_mentionFormat;
QTextCharFormat m_errorFormat;
Sonnet::BackgroundChecker *m_checker = new Sonnet::BackgroundChecker;
Sonnet::BackgroundChecker *m_checker = new Sonnet::BackgroundChecker(this);
Sonnet::Settings m_settings;
QString m_previousText;