From 58d050db7c081dd3cdbabb27d246b7f0dab7422c Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 23 May 2008 11:19:43 +0000 Subject: [PATCH] Fix minor leak. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4847 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index b2a59584..7c50c28c 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -1339,6 +1339,8 @@ static THEME_REC *read_internal_theme(void) THEME_REC *theme; theme = theme_create("internal", "_internal"); + theme->refcount++; + theme_destroy(theme); config = config_open(NULL, -1); config_parse_data(config, default_theme, "internal"); @@ -1359,7 +1361,6 @@ void themes_init(void) init_finished = FALSE; init_errors = NULL; - themes = NULL; themes_reload(); command_bind("format", NULL, (SIGNAL_FUNC) cmd_format);