diff options
author | James Booth <boothj5@gmail.com> | 2012-11-26 02:20:44 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-26 02:20:44 +0000 |
commit | c9ed583412fef4dd2260ce14a4d0aa9dfc24e226 (patch) | |
tree | f1e103318966e74a4a29921757922797c752b621 /src/profanity.c | |
parent | b2f9e1ad5ff37d7dd7424d1bec42faba7bffb883 (diff) | |
download | profani-tty-c9ed583412fef4dd2260ce14a4d0aa9dfc24e226.tar.gz |
Fixed some memory leaks
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c index e193d124..c7575498 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -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(); |