mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fix minor leak.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4847 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
82d6797306
commit
58d050db7c
@ -1339,6 +1339,8 @@ static THEME_REC *read_internal_theme(void)
|
|||||||
THEME_REC *theme;
|
THEME_REC *theme;
|
||||||
|
|
||||||
theme = theme_create("internal", "_internal");
|
theme = theme_create("internal", "_internal");
|
||||||
|
theme->refcount++;
|
||||||
|
theme_destroy(theme);
|
||||||
|
|
||||||
config = config_open(NULL, -1);
|
config = config_open(NULL, -1);
|
||||||
config_parse_data(config, default_theme, "internal");
|
config_parse_data(config, default_theme, "internal");
|
||||||
@ -1359,7 +1361,6 @@ void themes_init(void)
|
|||||||
init_finished = FALSE;
|
init_finished = FALSE;
|
||||||
init_errors = NULL;
|
init_errors = NULL;
|
||||||
|
|
||||||
themes = NULL;
|
|
||||||
themes_reload();
|
themes_reload();
|
||||||
|
|
||||||
command_bind("format", NULL, (SIGNAL_FUNC) cmd_format);
|
command_bind("format", NULL, (SIGNAL_FUNC) cmd_format);
|
||||||
|
Loading…
Reference in New Issue
Block a user