talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ff02e58cc767c44fe4223bafaf43b8e11092c8ba
parent 2872997c50d06b0946440c93072c6a0c4bab4231
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 10 Jul 2017 18:01:41 +0200

Fix a memory leak in the "no imap" account prefs label.

Diffstat:
Msrc/prefs_account.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -1145,9 +1145,11 @@ static void basic_create_widget_func(PrefsPage * _page, no_imap_warn_icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_SMALL_TOOLBAR); - no_imap_warn_label = gtk_label_new(g_strconcat("<span weight=\"bold\">", + buf = g_strconcat("<span weight=\"bold\">", _("Warning: this version of Claws Mail\n" - "has been built without IMAP and News support."), "</span>", NULL)); + "has been built without IMAP and News support."), "</span>", NULL); + no_imap_warn_label = gtk_label_new(buf); + g_free(buf); gtk_label_set_use_markup(GTK_LABEL(no_imap_warn_label), TRUE); gtk_box_pack_start(GTK_BOX (optmenubox), no_imap_warn_icon, FALSE, FALSE, 0);