X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=1d47382393c667afb0075fdadbe73ab7f47d78d0;hb=b27d9d21a3ada323acaa714d4055137d162aad76;hp=97f5e1f5865df388219777d742fa36814b43e658;hpb=cb7752cd1f48cbb9de4b3fa5062fa44e8d584701;p=chaz%2Fopenbox diff --git a/render/theme.c b/render/theme.c index 97f5e1f5..1d473823 100644 --- a/render/theme.c +++ b/render/theme.c @@ -95,6 +95,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, theme = g_new0(RrTheme, 1); theme->inst = inst; + theme->name = g_strdup(name ? name : DEFAULT_THEME); theme->a_disabled_focused_max = RrAppearanceNew(inst, 1); theme->a_disabled_unfocused_max = RrAppearanceNew(inst, 1); @@ -1192,6 +1193,8 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, void RrThemeFree(RrTheme *theme) { if (theme) { + g_free(theme->name); + RrColorFree(theme->menu_border_color); RrColorFree(theme->frame_focused_border_color); RrColorFree(theme->frame_unfocused_border_color);