diff --git a/src/plugins/debugger/qml/qmllivetextpreview.cpp b/src/plugins/debugger/qml/qmllivetextpreview.cpp index ee7ade0c953..c3b26fded3c 100644 --- a/src/plugins/debugger/qml/qmllivetextpreview.cpp +++ b/src/plugins/debugger/qml/qmllivetextpreview.cpp @@ -380,6 +380,11 @@ QmlLiveTextPreview::QmlLiveTextPreview(const QmlJS::Document::Ptr &doc, SLOT(onAutomaticUpdateFailed())); } +QmlLiveTextPreview::~QmlLiveTextPreview() +{ + removeOutofSyncInfo(); +} + void QmlLiveTextPreview::associateEditor(Core::IEditor *editor) { using namespace TextEditor; diff --git a/src/plugins/debugger/qml/qmllivetextpreview.h b/src/plugins/debugger/qml/qmllivetextpreview.h index 3353afcccd8..3565a86ebf3 100644 --- a/src/plugins/debugger/qml/qmllivetextpreview.h +++ b/src/plugins/debugger/qml/qmllivetextpreview.h @@ -61,6 +61,7 @@ public: const QmlJS::Document::Ptr &initDoc, QmlInspectorAdapter *inspectorAdapter, QObject *parent = 0); + ~QmlLiveTextPreview(); void associateEditor(Core::IEditor *editor); void unassociateEditor(Core::IEditor *editor);