free the themename properly

This commit is contained in:
Dana Jansens 2003-03-28 00:59:09 +00:00
parent fe2ec09512
commit ef3f83cadc

View file

@ -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;