mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 17:16:19 -05:00
Fixed memory leak in X11_SetWindowIcon().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user