1
0
Fork 0

Fix indirect memory leak of icon surface

This commit is contained in:
Patryk Obara 2020-03-21 00:26:21 +01:00 committed by Patryk Obara
parent d34378b621
commit 1f62338610

View file

@ -410,6 +410,7 @@ static void SetIcon()
SDL_Surface *s = SDL_CreateRGBSurfaceFrom((void*)logo, 32, 32, 32, 128,
RMASK, GMASK, BMASK, 0);
SDL_SetWindowIcon(sdl.window, s);
SDL_FreeSurface(s);
#endif // !defined(MACOSX)
}