ximpfw/core/srcutils/ximpobjecthelpers.cpp
branchRCL_3
changeset 14 7797b2f86d2b
parent 0 e6b17d312c8b
child 21 cfd5c2994f10
--- a/ximpfw/core/srcutils/ximpobjecthelpers.cpp	Wed Apr 14 16:17:20 2010 +0300
+++ b/ximpfw/core/srcutils/ximpobjecthelpers.cpp	Tue Apr 27 16:58:25 2010 +0300
@@ -59,6 +59,7 @@
 //
 EXPORT_C void TXIMPHBuf8Packer::UnPackArrayL( RPointerArray< HBufC8 >& aBufferArray, const TDesC8& aPack  )
     {
+	CleanupClosePushL( aBufferArray );
 	// No reset
     if ( ! aPack.Length() )
         {
@@ -83,6 +84,7 @@
         aBufferArray.AppendL( theObject );
 		}
     CleanupStack::Pop( objCount ); // all the objects
-    CleanupStack::PopAndDestroy(); // rs    
+    CleanupStack::PopAndDestroy(); // rs   
+    CleanupStack::Pop( &aBufferArray );
     }
 // End of file