]> Dogcows Code - chaz/openbox/commitdiff
fix 2 mem leaks
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:10:30 +0000 (21:10 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 21:10:30 +0000 (21:10 +0000)
render/theme.c

index ac80d19ba52d7d58c2700e6c974b0f09a1bd0867..907fd0b55226531ba82f5dcb891da3636c78444c 100644 (file)
@@ -924,6 +924,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
 void RrThemeFree(RrTheme *theme)
 {
     if (theme) {
+        g_free(theme->path);
         g_free(theme->name);
 
         RrColorFree(theme->b_color);
@@ -1051,6 +1052,8 @@ void RrThemeFree(RrTheme *theme)
         RrAppearanceFree(theme->app_unhilite_fg);
         RrAppearanceFree(theme->app_hilite_label);
         RrAppearanceFree(theme->app_unhilite_label);
+
+        g_free(theme);
     }
 }
 
This page took 0.031076 seconds and 4 git commands to generate.