Revert "[Tizen] Stop observing visuals when a control is destroyed"
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 19 Nov 2020 05:19:11 +0000 (14:19 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 19 Nov 2020 05:19:18 +0000 (14:19 +0900)
This reverts commit 54ad1435d4f9fb39846f2abc73d899e60d7b5675.

Change-Id: I28e289027d179581017348a1cee0731fcae8ada1

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

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