[gtk+] dnd: Make sure to free a stashed event



commit 73e799474a31eee2fc38c51d891c4502e1de9a46
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 1 13:25:51 2016 -0400

    dnd: Make sure to free a stashed event
    
    I am not sure if this happens in practice, but better to be safe.

 gtk/gtkdnd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 33a324b..c9f34e2 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -2788,6 +2788,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]