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