[Commits] [SCM] claws branch, master, updated. 3.18.0-238-g29d534e1a
wwp at claws-mail.org
wwp at claws-mail.org
Mon Oct 4 18:08:03 CEST 2021
The branch, master has been updated
via 29d534e1a5fbc41c3f28ddaa63f238ed8232efb0 (commit)
from 485502a2a443f2194a8353aa847fd7e238e34561 (commit)
Summary of changes:
src/folderview.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 29d534e1a5fbc41c3f28ddaa63f238ed8232efb0
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 35950b62f..103614a1a 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2918,7 +2918,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)
@@ -2928,7 +2927,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