forked from qt-creator/qt-creator
Lua: Fix tear-down of lua plugins
Change-Id: Ia556d59b717aef1c8e4fb0fb06010214786d0519 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -174,15 +174,19 @@ bool LuaPluginSpec::initializeExtensions()
|
|||||||
|
|
||||||
bool LuaPluginSpec::delayedInitialize()
|
bool LuaPluginSpec::delayedInitialize()
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
ExtensionSystem::IPlugin::ShutdownFlag LuaPluginSpec::stop()
|
ExtensionSystem::IPlugin::ShutdownFlag LuaPluginSpec::stop()
|
||||||
{
|
{
|
||||||
d->activeLuaState->stack_clear();
|
setState(PluginSpec::State::Stopped);
|
||||||
return ExtensionSystem::IPlugin::ShutdownFlag::SynchronousShutdown;
|
return ExtensionSystem::IPlugin::ShutdownFlag::SynchronousShutdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaPluginSpec::kill() {}
|
void LuaPluginSpec::kill()
|
||||||
|
{
|
||||||
|
d->activeLuaState.reset();
|
||||||
|
setState(PluginSpec::State::Deleted);
|
||||||
|
}
|
||||||
|
|
||||||
bool LuaPluginSpec::printToOutputPane() const
|
bool LuaPluginSpec::printToOutputPane() const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user