--- a/photosgallery/common/src/glxcommandparser.cpp Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/common/src/glxcommandparser.cpp Tue Apr 27 16:37:53 2010 +0300
@@ -206,8 +206,10 @@
// TTGlxCommandParser::ArrayValueL
// -----------------------------------------------------------------------------
//
-void TGlxCommandParser::ArrayValueL(const TMPXAttribute & aAttribute, RArray<TGlxMediaId>& aArray, const CMPXCommand& aCommand)
+void TGlxCommandParser::ArrayValueL(const TMPXAttribute & aAttribute,
+ RArray<TGlxMediaId>& aArray, const CMPXCommand& aCommand)
{
+ CleanupClosePushL(aArray);
if (!aCommand.IsSupported(aAttribute) || aCommand.Type(aAttribute) != EMPXTypeCObject)
{
User::Leave(KErrArgument);
@@ -228,6 +230,7 @@
aArray.AppendL(TGlxMediaId(list[i]));
}
}
+ CleanupStack::Pop(&aArray);
}
/// @todo minor: Rowland Cook 12/06/2007 Add method decription.