Revert "[Tizen] Stop observing visuals when a control is destroyed"
authorWonsik Jung <sidein@samsung.com>
Tue, 10 Nov 2020 06:42:43 +0000 (15:42 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 10 Nov 2020 06:42:43 +0000 (15:42 +0900)
This reverts commit 4f58faf22aca8b73194a558886ca85e140ba651e.

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;