Skip to content

Commit

Permalink
Fixed memory leak getting the X11 window title
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 25, 2014
1 parent 05cff79 commit 66a88c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -643,6 +643,7 @@ X11_GetWindowTitle(_THIS, Window xwindow)
&items_read, &items_left, &propdata);
if (status == Success && propdata) {
title = SDL_iconv_string("UTF-8", "", SDL_static_cast(char*, propdata), items_read+1);
X11_XFree(propdata);
} else {
title = SDL_strdup("");
}
Expand Down

0 comments on commit 66a88c6

Please sign in to comment.