about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-12 23:32:36 +0100
committerJames Booth <boothj5@gmail.com>2014-05-12 23:32:36 +0100
commite6e79d619a8ae721b11e112bc826eeddbf94773c (patch)
treecb0bc88bf573461d878f431c598883db77f67524 /src/ui
parentfc3046782a7fe82398c51ae6c8a3f60b85175342 (diff)
downloadprofani-tty-e6e79d619a8ae721b11e112bc826eeddbf94773c.tar.gz
Free strings in cons_show_account
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c3
1 files changed, 3 insertions, 0 deletions
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",