J :
* Fix a leak on opening a non-existing file.
This commit is contained in:
@@ -615,6 +615,7 @@ FILE* fp = fopen(filenamenew, "rb");
|
|||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
{
|
{
|
||||||
//Failed to open file
|
//Failed to open file
|
||||||
|
jpeg_destroy_decompress(&cinfo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user