Close PNG files after loading them into memory.
This commit is contained in:
parent
c404b55905
commit
85ce059bbc
|
@ -726,6 +726,8 @@ Image* LoadPNGImage(const string& filename)
|
|||
png_read_end(png_ptr, NULL);
|
||||
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
||||
|
||||
fclose(fp);
|
||||
|
||||
return img;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue