[Commits] [SCM] claws branch, master, updated. 3.15.0-85-gff02e58

ticho at claws-mail.org ticho at claws-mail.org
Mon Jul 10 18:02:15 CEST 2017


The branch, master has been updated
       via  ff02e58cc767c44fe4223bafaf43b8e11092c8ba (commit)
      from  2872997c50d06b0946440c93072c6a0c4bab4231 (commit)

Summary of changes:
 src/prefs_account.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit ff02e58cc767c44fe4223bafaf43b8e11092c8ba
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Jul 10 18:01:41 2017 +0200

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

diff --git a/src/prefs_account.c b/src/prefs_account.c
index 9934321..aa4d217 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list