imagingext_pub/exif_api/tsrc/src/ExifModifyTest100.cpp
changeset 27 b0bc8115cfe9
parent 0 469c91dae73b
--- a/imagingext_pub/exif_api/tsrc/src/ExifModifyTest100.cpp	Tue Sep 14 16:30:15 2010 +0300
+++ b/imagingext_pub/exif_api/tsrc/src/ExifModifyTest100.cpp	Wed Oct 13 13:10:46 2010 +0300
@@ -28,7 +28,10 @@
 	CleanupStack::PushL(exif);
 	CExifModify* modify = CExifModify::NewL(*exif, CExifModify::EModify, CExifModify::ENoJpegParsing);
 	if(!modify)
+	    {
+        delete modify;
 		User::Leave(KErrGeneral);
+        }
 	delete modify;
 	CleanupStack::PopAndDestroy(exif);