diff -r 98a43fae6e2b -r 741e5bba2bd1 installationservices/swi/source/pkgremover/pkgremover.cpp --- a/installationservices/swi/source/pkgremover/pkgremover.cpp Tue Apr 27 16:46:15 2010 +0300 +++ b/installationservices/swi/source/pkgremover/pkgremover.cpp Tue May 11 16:20:28 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -25,6 +25,7 @@ #include "installclientserver.h" #include #include +#include "cleanuputils.h" // Maximum buffer size const TInt KMaxBufferSize = 1024; @@ -43,6 +44,7 @@ /*static*/ EXPORT_C void UninstalledSisPackages::ListL(TDriveNumber aDrive, RPointerArray& aPackageList) { + CleanupResetAndDestroyPushL(aPackageList); aPackageList.ResetAndDestroy(); // Check if SWIS is busy @@ -150,6 +152,7 @@ // Shutdown InstallServer and SisHelper CleanupStack::PopAndDestroy(2, &server); + CleanupStack::Pop(&aPackageList); } /*static*/