all repos — openbox @ ef3f83cadcfd59ecb78a22dca9bcc419928b4bf7

openbox fork - make it a bit more like ryudo

free the themename properly
Dana Jansens danakj@orodu.net
commit

ef3f83cadcfd59ecb78a22dca9bcc419928b4bf7

parent

fe2ec0951215f651818efefa2ca27e23e9c30d72

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M engines/openbox/theme.cengines/openbox/theme.c

@@ -156,9 +156,13 @@

if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) ret = TRUE; else { + char *themename; + g_free(s); + themename = g_path_get_basename(theme.string); s = g_strdup_printf("%s_buttons/%s", theme.string, - g_path_get_basename(theme.string)); + themename); + g_free(themename); if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) ret = TRUE;