mirror of https://github.com/mgba-emu/mgba.git
Util: Fix memory leak in mImageLoadVF
This commit is contained in:
parent
1fd974272c
commit
bd3a3b8360
|
@ -91,6 +91,7 @@ static struct mImage* mImageLoadPNG(struct VFile* vf) {
|
|||
PNGReadClose(png, info, end);
|
||||
return NULL;
|
||||
}
|
||||
PNGReadClose(png, info, end);
|
||||
return image;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue