fix 2 mem leaks

This commit is contained in:
Dana Jansens 2003-09-14 21:10:30 +00:00
parent 1e52b4ac28
commit e60dd0259a

View file

@ -924,6 +924,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
void RrThemeFree(RrTheme *theme) void RrThemeFree(RrTheme *theme)
{ {
if (theme) { if (theme) {
g_free(theme->path);
g_free(theme->name); g_free(theme->name);
RrColorFree(theme->b_color); RrColorFree(theme->b_color);
@ -1051,6 +1052,8 @@ void RrThemeFree(RrTheme *theme)
RrAppearanceFree(theme->app_unhilite_fg); RrAppearanceFree(theme->app_unhilite_fg);
RrAppearanceFree(theme->app_hilite_label); RrAppearanceFree(theme->app_hilite_label);
RrAppearanceFree(theme->app_unhilite_label); RrAppearanceFree(theme->app_unhilite_label);
g_free(theme);
} }
} }