Skip to content

Commit

Permalink
ScriptEditor: don't leak a timer for every script editor widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Jan 27, 2024
1 parent d24624c commit 90f2b31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/editor/ScriptEditorImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ ScriptEditorWidget::~ScriptEditorWidget()
if(m_pCompleter)
delete m_pCompleter;
disableSyntaxHighlighter();
if(m_pStartTimer) {
m_pStartTimer->stop();
m_pStartTimer->deleteLater();
m_pStartTimer = nullptr;
}
}

void ScriptEditorWidget::checkReadyCompleter()
Expand Down

0 comments on commit 90f2b31

Please sign in to comment.