소스 검색

Clear the internal d-pointer on reseting ctkServiceRegistration

Sascha Zelzer 14 년 전
부모
커밋
75746a8287
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Libs/PluginFramework/ctkServiceRegistration.cpp

+ 3 - 0
Libs/PluginFramework/ctkServiceRegistration.cpp

@@ -68,7 +68,10 @@ ctkServiceRegistration& ctkServiceRegistration::operator=(int null)
   if (null == 0)
   {
     if (d_func() && !d_func()->ref.deref())
+    {
       delete d_ptr;
+    }
+    d_ptr = 0;
   }
   return *this;
 }