* Fix a leak on opening a non-existing file.
This commit is contained in:
jean.chalard
2009-09-03 16:05:37 +00:00
parent 4c0b0e2933
commit 1e42fc65d1

View File

@@ -615,6 +615,7 @@ FILE* fp = fopen(filenamenew, "rb");
if (fp == NULL)
{
//Failed to open file
jpeg_destroy_decompress(&cinfo);
return;
}