From 4c961349ab09ff3bca97159badd2b54c748577a9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 31 May 2018 21:44:38 +0200 Subject: [PATCH] dnd: Ref the GdkDrop during the DND operation It might go away if the DND takes too long otherwise... --- gtk/gtkdnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 6613243566..add85c4048 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -208,6 +208,7 @@ gtk_drag_get_data_finish (GtkDragGetData *data, } g_object_unref (data->widget); + g_object_unref (data->context); g_slice_free (GtkDragGetData, data); } @@ -292,7 +293,7 @@ gtk_drag_get_data (GtkWidget *widget, data = g_slice_new0 (GtkDragGetData); data->widget = g_object_ref (widget); - data->context = context; + data->context = g_object_ref (context); data->mime_type = target; data->time = time_;