Explorar o código

Break cyclic dependency by explicitly setting ref to 0.

Sascha Zelzer %!s(int64=13) %!d(string=hai) anos
pai
achega
79ee9b21cb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Libs/PluginFramework/ctkServiceRegistration.cpp

+ 2 - 1
Libs/PluginFramework/ctkServiceRegistration.cpp

@@ -202,7 +202,8 @@ void ctkServiceRegistration::unregister()
       d->plugin = 0;
       d->dependents.clear();
       d->service = 0;
-      d->serviceInstances.clear();;
+      d->serviceInstances.clear();
+      d->reference = 0;
       d->unregistering = false;
     }
   }