From: Benjamin Otte Date: Thu, 31 May 2018 19:44:38 +0000 (+0200) Subject: dnd: Ref the GdkDrop during the DND operation X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~189 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4c961349ab09ff3bca97159badd2b54c748577a9;p=gtk4.git dnd: Ref the GdkDrop during the DND operation It might go away if the DND takes too long otherwise... --- 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_;