X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=engines%2Fopenbox%2Ftheme.c;h=c775ff9ecdbfc0e3fd355785b03d9f813636f69d;hb=f8fb32b159bfb6ddc3d057783005cd991ff52eac;hp=8cbab4819259efd6d57185bf23b8d4cb82066366;hpb=fe2ec0951215f651818efefa2ca27e23e9c30d72;p=chaz%2Fopenbox diff --git a/engines/openbox/theme.c b/engines/openbox/theme.c index 8cbab481..c775ff9e 100644 --- a/engines/openbox/theme.c +++ b/engines/openbox/theme.c @@ -156,9 +156,13 @@ gboolean read_mask(XrmDatabase db, char *rname, pixmap_mask **value) 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;