contentmgmt/referencedrmagent/tcaf/source/ManagerStep.cpp
changeset 108 ca9a0fc2f082
parent 15 da2ae96f639b
--- a/contentmgmt/referencedrmagent/tcaf/source/ManagerStep.cpp	Wed Oct 06 11:09:48 2010 +0530
+++ b/contentmgmt/referencedrmagent/tcaf/source/ManagerStep.cpp	Sat Oct 30 16:29:23 2010 +0530
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2003-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"
@@ -1291,10 +1291,13 @@
 	__UHEAP_MARK;
 	
 	CIteratorTestStateMachine *t = new CIteratorTestStateMachine(this);
-	
+
+	CleanupStack::PushL(t);
+
 	t->RunTestL(path, ETrue, mimeType8);
+
+	CleanupStack::PopAndDestroy(t);
 	
-	delete t;	
 	__UHEAP_MARKEND;
 	return TestStepResult();
 	}