Commit 0566b6f6 authored by David Schulz's avatar David Schulz

Editor: Disconnect private editor class when destructing.

Task-number: QTCREATORBUG-15010
Change-Id: Iae3fef08fe0ed42a0eb81cc724f8e5250aedc80d
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
parent e7cfdb63
......@@ -255,10 +255,7 @@ class TextEditorWidgetPrivate : public QObject
{
public:
TextEditorWidgetPrivate(TextEditorWidget *parent);
~TextEditorWidgetPrivate()
{
delete m_toolBar;
}
~TextEditorWidgetPrivate();
void setupDocumentSignals();
void updateLineSelectionColor();
......@@ -562,6 +559,12 @@ TextEditorWidgetPrivate::TextEditorWidgetPrivate(TextEditorWidget *parent)
m_extraSelections.reserve(NExtraSelectionKinds);
}
TextEditorWidgetPrivate::~TextEditorWidgetPrivate()
{
q->disconnect(this);
delete m_toolBar;
}
} // namespace Internal
using namespace Internal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment