]> Dogcows Code - chaz/openbox/commitdiff
free the themename properly
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 00:59:09 +0000 (00:59 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 00:59:09 +0000 (00:59 +0000)
engines/openbox/theme.c

index 8cbab4819259efd6d57185bf23b8d4cb82066366..c775ff9ecdbfc0e3fd355785b03d9f813636f69d 100644 (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;
This page took 0.025849 seconds and 4 git commands to generate.