ソースを参照

Break cyclic dependency by explicitly setting ref to 0.

Sascha Zelzer 13 年 前
コミット
79ee9b21cb
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  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;
     }
   }