Revert "[Tizen] Fix memory leak issue in dali core" 44/132644/1
authorminho.sun <minho.sun@samsung.com>
Wed, 7 Jun 2017 05:53:48 +0000 (14:53 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 7 Jun 2017 05:53:53 +0000 (14:53 +0900)
This reverts commit 0ffd846a82f78a4034367e1271166da711dc35d2.

Change-Id: I14113d015884bb1b6e362a54b9a50de39f4f6cd8

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;
   }
 }