projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2ec09
)
free the themename properly
author
Dana Jansens
<danakj@orodu.net>
Fri, 28 Mar 2003 00:59:09 +0000
(
00:59
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 28 Mar 2003 00:59:09 +0000
(
00:59
+0000)
engines/openbox/theme.c
patch
|
blob
|
history
diff --git
a/engines/openbox/theme.c
b/engines/openbox/theme.c
index 8cbab4819259efd6d57185bf23b8d4cb82066366..c775ff9ecdbfc0e3fd355785b03d9f813636f69d 100644
(file)
--- 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;