Fixed memory leak getting the X11 window title
authorSam Lantinga <slouken@libsdl.org>
Mon, 25 Aug 2014 10:55:54 -0700
changeset 9117236241f5d225
parent 9115 92ca74200ea5
child 9118 8eeb0d759bc3
Fixed memory leak getting the X11 window title
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Sun Aug 24 00:02:12 2014 -0700
     1.2 +++ b/src/video/x11/SDL_x11window.c	Mon Aug 25 10:55:54 2014 -0700
     1.3 @@ -643,6 +643,7 @@
     1.4                      &items_read, &items_left, &propdata);
     1.5          if (status == Success && propdata) {
     1.6              title = SDL_iconv_string("UTF-8", "", SDL_static_cast(char*, propdata), items_read+1);
     1.7 +            X11_XFree(propdata);
     1.8          } else {
     1.9              title = SDL_strdup("");
    1.10          }