JsExpander: Do not crash on exit

Change-Id: I55caca6dd5b316b2573b443175448d732101871c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2014-09-18 16:11:34 +02:00
parent 2b89e759cf
commit a5828911be
4 changed files with 4 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
modelManager->updateSourceFiles(files.toSet());
});
JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension(this));
JsExpander::registerQObjectForJs(QLatin1String("Cpp"), new CppToolsJsExtension);
CppLocatorData *locatorData = new CppLocatorData;
connect(modelManager, SIGNAL(documentUpdated(CPlusPlus::Document::Ptr)),