Skip to content

Commit

Permalink
Don't lose the icon surface if it's freed immediately after SDL_WM_Se…
Browse files Browse the repository at this point in the history
…tIcon()

This is a memory leak, but we don't have a good place to free the icon surface a the moment.
  • Loading branch information
slouken committed Aug 15, 2011
1 parent 6495adc commit 3b103ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDL_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ void
SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask)
{
SDL_VideoIcon = icon;
++SDL_VideoIcon->refcount;
}

int
Expand Down

0 comments on commit 3b103ed

Please sign in to comment.