diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-05-23 11:19:43 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-05-23 11:19:43 +0000 |
commit | 58d050db7c081dd3cdbabb27d246b7f0dab7422c (patch) | |
tree | 0543f4ef851f71a6d00347ff7752c455d9d1e154 | |
parent | 82d679730682324712848010e7f21efbc7e6c888 (diff) | |
download | irssi-58d050db7c081dd3cdbabb27d246b7f0dab7422c.zip |
Fix minor leak.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4847 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/themes.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |