From ef3f83cadcfd59ecb78a22dca9bcc419928b4bf7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 28 Mar 2003 00:59:09 +0000 Subject: [PATCH] free the themename properly --- engines/openbox/theme.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.45.2