Debugger: Call removeEngine also for QV8DebugService
authorKai Koehne <kai.koehne@nokia.com>
Thu, 6 Oct 2011 14:39:38 +0000 (16:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 15:25:19 +0000 (17:25 +0200)
Change-Id: Ibb35e577f8844b47a844864f7639321859e20866
Reviewed-on: http://codereview.qt-project.org/6171
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>

src/declarative/qml/qdeclarativeengine.cpp

index 96c3989..2b76f1f 100644 (file)
@@ -502,6 +502,7 @@ QDeclarativeEngine::~QDeclarativeEngine()
     Q_D(QDeclarativeEngine);
     if (d->isDebugging) {
         QDeclarativeEngineDebugService::instance()->remEngine(this);
+        QV8DebugService::instance()->removeEngine(this);
         QV8ProfilerService::instance()->removeEngine(this);
     }