mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 17:16:19 -05:00
Don't lose the icon surface if it's freed immediately after SDL_WM_SetIcon()
This is a memory leak, but we don't have a good place to free the icon surface a the moment.
This commit is contained in:
@@ -821,6 +821,7 @@ void
|
||||
SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask)
|
||||
{
|
||||
SDL_VideoIcon = icon;
|
||||
++SDL_VideoIcon->refcount;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user