Close PNG files after loading them into memory.

This commit is contained in:
Chris Laurel 2003-10-08 06:57:22 +00:00
parent c404b55905
commit 85ce059bbc

View file

@ -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
}