Revert "[Tizen] Stop observing visuals when a control is destroyed"
authorJiyun Yang <ji.yang@samsung.com>
Thu, 26 Nov 2020 06:33:21 +0000 (15:33 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 26 Nov 2020 06:33:21 +0000 (15:33 +0900)
This reverts commit 73ef249aac4a172a5327dd380c6d9ef8e762c133.

dali-toolkit/internal/controls/control/control-data-impl.cpp

index 9182c1f..df01b27 100755 (executable)
@@ -459,16 +459,6 @@ Control::Impl::Impl( Control& controlImpl )
 
 Control::Impl::~Impl()
 {
-  for( auto&& iter : mVisuals )
-  {
-    StopObservingVisual( iter->visual );
-  }
-
-  for( auto&& iter : mRemoveVisuals )
-  {
-    StopObservingVisual( iter->visual );
-  }
-
   AccessibilityDeregister();
   // All gesture detectors will be destroyed so no need to disconnect.
   delete mStartingPinchScale;