free the themename properly
This commit is contained in:
parent
fe2ec09512
commit
ef3f83cadc
1 changed files with 5 additions and 1 deletions
|
@ -156,9 +156,13 @@ gboolean read_mask(XrmDatabase db, char *rname, pixmap_mask **value)
|
||||||
if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess)
|
if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess)
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
else {
|
else {
|
||||||
|
char *themename;
|
||||||
|
|
||||||
g_free(s);
|
g_free(s);
|
||||||
|
themename = g_path_get_basename(theme.string);
|
||||||
s = g_strdup_printf("%s_buttons/%s", 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) ==
|
if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) ==
|
||||||
BitmapSuccess)
|
BitmapSuccess)
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue