浏览代码

Set pluginContext to 0 when stopping a plugin.

Otherwise, when starting the plugin again, the invalidated PluginContext
would be reused.
Sascha Zelzer 14 年之前
父节点
当前提交
e1310fd6fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/PluginFramework/ctkPluginPrivate.cpp

+ 1 - 1
Libs/PluginFramework/ctkPluginPrivate.cpp

@@ -308,7 +308,7 @@ void ctkPluginPrivate::stop0(bool wasStarted)
     if (pluginContext)
     {
       pluginContext->d_func()->invalidate();
-      //pluginContext = 0;
+      pluginContext.reset();
     }
     //8-10:
     removePluginResources();