Fix indirect memory leak of icon surface
This commit is contained in:
parent
d34378b621
commit
1f62338610
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue