Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed memory leak in X11_SetWindowIcon().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 6, 2012
1 parent 15aa5e8 commit 78714d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -718,6 +718,7 @@ X11_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
32, PropModeReplace, (unsigned char *) propdata,
propsize);
}
SDL_free(propdata);
SDL_FreeSurface(surface);
} else {
XDeleteProperty(display, data->xwindow, _NET_WM_ICON);
Expand Down

0 comments on commit 78714d9

Please sign in to comment.