summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-05-01 13:25:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-05-05 15:04:01 -0400
commit106550625759a787254384de913242b4f2064e88 (patch)
treed8a28b751b2fe4694126cdeff7fe4ef8ae007326
parente3e84de96c0a99dd8bd838337ecb0d7ab315f156 (diff)
downloadgtk+-106550625759a787254384de913242b4f2064e88.tar.gz
dnd: Make sure to free a stashed event
I am not sure if this happens in practice, but better to be safe.
-rw-r--r--gtk/gtkdnd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index dd512bc0cf..975e3f0793 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3277,6 +3277,9 @@ gtk_drag_source_info_destroy (GtkDragSourceInfo *info)
gtk_drag_clear_source_info (info->context);
g_object_unref (info->context);
+
+ if (info->last_event)
+ gdk_event_free (info->last_event);
}
static gboolean