Fix image file close issue

After file is opened, add fclose to avoid saving buffer data in memory
This commit is contained in:
SeanLin 2019-09-16 11:29:12 +08:00 committed by K. S. Ernest (iFire) Lee
parent 4cf9f4fd5d
commit d2648c74c7
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ ImageProperties GetImageProperties(char const* filePath) {
if (success && channels == 4 && imageHasTransparentPixels(f)) {
result.occlusion = IMAGE_TRANSPARENT;
}
fclose(f);
return result;
}