Fix image file close issue
After file is opened, add fclose to avoid saving buffer data in memory
This commit is contained in:
parent
683c9aa8e7
commit
d2bcefb73f
|
@ -55,6 +55,8 @@ ImageProperties GetImageProperties(char const* filePath) {
|
||||||
if (success && channels == 4 && imageHasTransparentPixels(f)) {
|
if (success && channels == 4 && imageHasTransparentPixels(f)) {
|
||||||
result.occlusion = IMAGE_TRANSPARENT;
|
result.occlusion = IMAGE_TRANSPARENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(f);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue