Commit 3cc0d7d6 authored by Sam Lantinga's avatar Sam Lantinga

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.
parent a854e65d
......@@ -821,6 +821,7 @@ void
SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask)
{
SDL_VideoIcon = icon;
++SDL_VideoIcon->refcount;
}
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment