Fixed memory leak in X11_SetWindowIcon().
authorRyan C. Gordon <icculus@icculus.org>
Fri, 05 Oct 2012 22:43:00 -0400
changeset 6562c52863165594
parent 6560 3c48e9d0ce2e
child 6564 fa0c355cbcdd
Fixed memory leak in X11_SetWindowIcon().
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Thu Oct 04 23:56:37 2012 -0400
     1.2 +++ b/src/video/x11/SDL_x11window.c	Fri Oct 05 22:43:00 2012 -0400
     1.3 @@ -718,6 +718,7 @@
     1.4                              32, PropModeReplace, (unsigned char *) propdata,
     1.5                              propsize);
     1.6          }
     1.7 +        SDL_free(propdata);
     1.8          SDL_FreeSurface(surface);
     1.9      } else {
    1.10          XDeleteProperty(display, data->xwindow, _NET_WM_ICON);