ximpfw/core/srcutils/ximpobjecthelpers.cpp
branchRCL_3
changeset 22 113b91e0a2ad
parent 21 cfd5c2994f10
--- a/ximpfw/core/srcutils/ximpobjecthelpers.cpp	Tue Aug 31 15:31:29 2010 +0300
+++ b/ximpfw/core/srcutils/ximpobjecthelpers.cpp	Wed Sep 01 12:27:45 2010 +0100
@@ -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