From e6e79d619a8ae721b11e112bc826eeddbf94773c Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 12 May 2014 23:32:36 +0100 Subject: [PATCH] Free strings in cons_show_account --- src/ui/console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/console.c b/src/ui/console.c index 064f4b71..e29b4eb7 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -906,6 +906,7 @@ _cons_show_account(ProfAccount *account) curr = curr->next; } cons_show(manual->str); + g_string_free(manual, TRUE); } if (g_list_length(account->otr_opportunistic) > 0) { GString *opportunistic = g_string_new("OTR opportunistic : "); @@ -918,6 +919,7 @@ _cons_show_account(ProfAccount *account) curr = curr->next; } cons_show(opportunistic->str); + g_string_free(opportunistic, TRUE); } if (g_list_length(account->otr_always) > 0) { GString *always = g_string_new("OTR always : "); @@ -930,6 +932,7 @@ _cons_show_account(ProfAccount *account) curr = curr->next; } cons_show(always->str); + g_string_free(always, TRUE); } cons_show ("Priority : chat:%d, online:%d, away:%d, xa:%d, dnd:%d",