[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-275-gbb28b4255

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 12:07:24 CEST 2021


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

Summary of changes:
 src/news_gtk.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit bb28b425526b997ff9982b492a2fb1f9ad87daf1
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 12:03:17 2021 +0200

    Fix CID 1491341: resource leak.

diff --git a/src/news_gtk.c b/src/news_gtk.c
index 7b861c231..6f8dff3f4 100644
--- a/src/news_gtk.c
+++ b/src/news_gtk.c
@@ -253,7 +253,10 @@ static void unsubscribe_newsgroup_cb(GtkAction *action, gpointer data)
 				ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
 	g_free(message);
 	g_free(name);
-	if (avalue != G_ALERTALTERNATE) return;
+	if (avalue != G_ALERTALTERNATE) {
+		g_free(old_id);
+		return;
+    }
 
 	if (item == folderview_get_opened_item(folderview)) {
 		summary_clear_all(folderview->summaryview);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list