omadrm/drmengine/agentv2/src/Oma2AgentRightsManager.cpp
changeset 84 b09186059647
parent 23 493788a4a8a4
--- a/omadrm/drmengine/agentv2/src/Oma2AgentRightsManager.cpp	Tue Sep 28 14:08:58 2010 +0300
+++ b/omadrm/drmengine/agentv2/src/Oma2AgentRightsManager.cpp	Thu Oct 14 13:45:23 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -332,7 +332,9 @@
         CleanupStack::PushL(entry);
         path = CVirtualPath::NewL(TVirtualPathPtr(entry->FileName(),
             KDefaultContentObject));
+        CleanupStack::PushL(path);
         aArray.AppendL(path);
+        CleanupStack::Pop(path);
         CleanupStack::PopAndDestroy(); // entry
         entry = rep->NextL();
         }