[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-300-g3665d84a6

wwp at claws-mail.org wwp at claws-mail.org
Mon Oct 4 18:08:06 CEST 2021


The branch, gtk3 has been updated
       via  3665d84a62c167054e76833a1fa2874a48823554 (commit)
      from  ae0353bbfb07942f82408c66c95f65d0f2adcf8a (commit)

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


- Log -----------------------------------------------------------------
commit 3665d84a62c167054e76833a1fa2874a48823554
Author: wwp <subscript at free.fr>
Date:   Mon Oct 4 18:07:50 2021 +0200

    Fix CID 1491194: resource leak.

diff --git a/src/folderview.c b/src/folderview.c
index 6307daf0d..8fd2b5598 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2908,7 +2908,6 @@ static void folderview_drag_data_get(GtkWidget        *widget,
 {
 	FolderItem *item;
 	GList *sel;
-	gchar *source = NULL;
 	if (info == TARGET_DUMMY) {
 		sel = GTK_CMCLIST(folderview->ctree)->selection;
 		if (!sel)
@@ -2918,7 +2917,10 @@ static void folderview_drag_data_get(GtkWidget        *widget,
 			(GTK_CMCTREE(folderview->ctree),
 			 GTK_CMCTREE_NODE(sel->data));
 		if (item) {
-			source = g_strdup_printf ("FROM_OTHER_FOLDER%s", folder_item_get_identifier(item));
+			gchar *source = NULL;
+			gchar *name = folder_item_get_identifier(item);
+			source = g_strdup_printf ("FROM_OTHER_FOLDER%s", name);
+			g_free(name);
 			gtk_selection_data_set(selection_data,
 					       gtk_selection_data_get_target(selection_data), 8,
 					       source, strlen(source));

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list