Fixed memory leak in X11_SetWindowIcon().
This commit is contained in:
parent
7706dcdcdc
commit
b73e16cc4a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue