We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecccf27 commit 16908dcCopy full SHA for 16908dc
1 file changed
graphics.c
@@ -91,6 +91,8 @@ prepare_window(uint32_t width, uint32_t height, const char *iconFile)
91
hIcon = (HICON)LoadImageA(NULL, iconFile, IMAGE_ICON, 256, 256, LR_LOADFROMFILE);
92
if (!hIcon) {
93
logmsg("Failed to load icon from %s: %d\n", iconFile, GetLastError());
94
+ } else {
95
+ DeleteFileA(iconFile);
96
}
97
98
0 commit comments