xcfw/src/xcfwengine.cpp
branchRCL_3
changeset 74 edd621764147
parent 3 ff572005ac23
--- a/xcfw/src/xcfwengine.cpp	Tue Apr 27 16:57:49 2010 +0300
+++ b/xcfw/src/xcfwengine.cpp	Tue May 11 16:30:05 2010 +0300
@@ -879,9 +879,11 @@
     if ( obj )
         {
         CleanupStack::PushL( obj );
-        
+
         factory->InitializeObjectL( *this );
-        
+
+        CleanupStack::Pop( obj );
+
         if ( !iCurrentTreeNode )
             {
             //Adding root.
@@ -892,8 +894,6 @@
             //add under certain parent.
             iCurrentTreeNode = iTree->AddNodeL( obj, iCurrentTreeNode );            
             }
-            
-        CleanupStack::Pop( obj );
         }
     else
         {