Fixed some memory leaks

This commit is contained in:
James Booth
2012-11-26 02:20:44 +00:00
parent b2f9e1ad5f
commit c9ed583412
6 changed files with 38 additions and 4 deletions

View File

@@ -448,7 +448,9 @@ _init(const int disable_tls, char *log_level)
log_info("Starting Profanity (%s)...", PACKAGE_VERSION);
chat_log_init();
prefs_load();
theme_load(prefs_get_theme());
gchar *theme = prefs_get_theme();
theme_load(theme);
g_free(theme);
ui_init();
jabber_init(disable_tls);
cmd_init();