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:
Sam Lantinga
2011-08-14 21:57:50 -04:00
parent 19fc9bc29c
commit f60d3a845a

View File

@@ -821,6 +821,7 @@ void
SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask)
{
SDL_VideoIcon = icon;
++SDL_VideoIcon->refcount;
}
int