[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-276-g4e0408e03

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 12:15:21 CEST 2021


The branch, gtk3 has been updated
       via  4e0408e032d99c48f34c89d110204eec2aff9f83 (commit)
      from  bb28b425526b997ff9982b492a2fb1f9ad87daf1 (commit)

Summary of changes:
 src/main.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 4e0408e032d99c48f34c89d110204eec2aff9f83
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 12:14:54 2021 +0200

    Fix CID 1491313: resource leak.

diff --git a/src/main.c b/src/main.c
index 642649c02..e5733e100 100644
--- a/src/main.c
+++ b/src/main.c
@@ -380,12 +380,15 @@ static gboolean migrate_old_config(const gchar *old_cfg_dir, const gchar *new_cf
 {
 	gchar *message = g_strdup_printf(_("Configuration for %s found.\n"
 			 "Do you want to migrate this configuration?"), oldversion);
-	gchar *message2 = g_strdup_printf(_("\n\nYour Sylpheed filtering rules can be converted by a\n"
-			     "script available at %s."), TOOLS_URI);
 
-	if (!strcmp(oldversion, "Sylpheed"))
-		message = g_strconcat(message, message2, NULL);
-	g_free(message2);
+	if (!strcmp(oldversion, "Sylpheed")) {
+		gchar *message2 = g_strdup_printf(_("\n\nYour Sylpheed filtering rules can be converted by a\n"
+			     "script available at %s."), TOOLS_URI);
+		gchar *tmp = g_strconcat(message, message2, NULL);
+		g_free(message2);
+		g_free(message);
+        message = tmp;
+	}
 
 	gint r = 0;
 	GtkWidget *window = NULL;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list