Prechádzať zdrojové kódy

Set pluginContext to 0 when stopping a plugin.

Otherwise, when starting the plugin again, the invalidated PluginContext
would be reused.
Sascha Zelzer 14 rokov pred
rodič
commit
e1310fd6fa
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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();