Revert "[Tizen] Fix memory leak issue in dali core" 51/133551/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 13 Jun 2017 01:32:18 +0000 (10:32 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 13 Jun 2017 01:32:24 +0000 (10:32 +0900)
This reverts commit cd1f8c935c88054e546c76834f077ba6677facb5.

Change-Id: Ie8107ab947cd450b2fecc38817f803915889bc59

dali/internal/event/actors/actor-impl.cpp [changed mode: 0755->0644]
dali/internal/event/actors/actor-impl.h [changed mode: 0755->0644]
dali/internal/update/manager/update-manager.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 4ad7d29..2ab1558
@@ -2446,7 +2446,6 @@ void Actor::RebuildDepthTree()
 
   SetDepthIndicesMessage( GetEventThreadServices().GetUpdateManager(), sceneGraphNodeDepths );
   DALI_LOG_TIMER_END(depthTimer, gLogFilter, Debug::Concise, "Depth tree create time: ");
-  rootNode->~ActorDepthTreeNode();
 }
 
 /**
old mode 100755 (executable)
new mode 100644 (file)
index e0f200f..b7e177d
@@ -2008,17 +2008,15 @@ public:
   {
     if( mFirstChildNode )
     {
-      mFirstChildNode->~ActorDepthTreeNode();
+      delete mFirstChildNode;
       mFirstChildNode = NULL;
     }
     if( mNextSiblingNode )
     {
-      mNextSiblingNode->~ActorDepthTreeNode();
+      delete mNextSiblingNode;
       mNextSiblingNode = NULL;
     }
     mParentNode = NULL;
-
-    mActors.clear();
   }
 
   uint16_t GetSiblingOrder()
old mode 100755 (executable)
new mode 100644 (file)
index c6d67ea..344891a
@@ -1053,7 +1053,6 @@ void UpdateManager::SetDepthIndices( NodeDepths* nodeDepths )
     {
       iter->node->SetDepthIndex( iter->sortedDepth );
     }
-    delete nodeDepths;
   }
 }