Parcourir la source

Set pluginContext to 0 when stopping a plugin.

Otherwise, when starting the plugin again, the invalidated PluginContext
would be reused.
Sascha Zelzer il y a 14 ans
Parent
commit
e1310fd6fa
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();