fix memory leak

This commit is contained in:
Dana Jansens 2003-10-10 05:39:21 +00:00
parent f8c81e8ca4
commit 281390a926

View file

@ -499,17 +499,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
"window.active.label.bg", theme->app_hilite_label, "window.active.label.bg", theme->app_hilite_label,
TRUE)) TRUE))
set_default_appearance(theme->app_hilite_label); set_default_appearance(theme->app_hilite_label);
if (!read_appearance(db, inst, if (theme->a_focused_label->surface.grad != RR_SURFACE_PARENTREL)
"window.active.label.bg", theme->app_hilite_fg, theme->app_hilite_fg = RrAppearanceCopy(theme->a_focused_label);
TRUE)) else
set_default_appearance(theme->app_hilite_fg); theme->app_hilite_fg = RrAppearanceCopy(theme->a_focused_title);
else if (theme->app_hilite_fg->surface.grad == RR_SURFACE_PARENTREL) {
if (!read_appearance(db, inst,
"window.active.title.bg",
theme->app_hilite_fg,
FALSE))
set_default_appearance(theme->app_hilite_fg);
}
if (!read_appearance(db, inst, if (!read_appearance(db, inst,
"window.inactive.title.bg", theme->app_unhilite_bg, "window.inactive.title.bg", theme->app_unhilite_bg,
FALSE)) FALSE))
@ -518,18 +511,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
"window.inactive.label.bg", theme->app_unhilite_label, "window.inactive.label.bg", theme->app_unhilite_label,
TRUE)) TRUE))
set_default_appearance(theme->app_unhilite_label); set_default_appearance(theme->app_unhilite_label);
if (!read_appearance(db, inst, if (theme->a_unfocused_label->surface.grad != RR_SURFACE_PARENTREL)
"window.inactive.label.bg", theme->app_unhilite_fg, theme->app_unhilite_fg = RrAppearanceCopy(theme->a_unfocused_label);
TRUE)) else
set_default_appearance(theme->app_unhilite_fg); theme->app_unhilite_fg = RrAppearanceCopy(theme->a_unfocused_title);
else if (theme->app_unhilite_label->surface.grad == RR_SURFACE_PARENTREL) {
if (!read_appearance(db, inst,
"window.inactive.title.bg",
theme->app_unhilite_fg,
FALSE))
set_default_appearance(theme->app_unhilite_fg);
}
/* read buttons textures */ /* read buttons textures */
if (!read_appearance(db, inst, if (!read_appearance(db, inst,