messagingfw/msgtest/integration/email/src/Emailsmoke.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
--- a/messagingfw/msgtest/integration/email/src/Emailsmoke.cpp	Tue Oct 05 13:50:47 2010 +0530
+++ b/messagingfw/msgtest/integration/email/src/Emailsmoke.cpp	Tue Oct 19 11:59:06 2010 +0530
@@ -131,7 +131,10 @@
 	HBufC* errorText=NULL;
 	TRAPD(ret,errorText= debugInfo.TestFailedStringLC(aError));
 	if (ret!=KErrNone)
+		{
+		CleanupStack::Pop();
 		return ret;
+		}
 	TRAP(ret,LogComment(*errorText)); //LogComentL doesn't leave although it has L.  
 	TestConsole().Printf(*errorText);
 	TestConsole().Printf(_L("\r"));