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