diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/common/src/glxcommandparser.cpp --- 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& aArray, const CMPXCommand& aCommand) +void TGlxCommandParser::ArrayValueL(const TMPXAttribute & aAttribute, + RArray& 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.