[gtk+/gtk-3-20] dnd: Make sure to free a stashed event



commit 106550625759a787254384de913242b4f2064e88
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 dd512bc..975e3f0 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


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