about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
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();