dnd: Ref the GdkDrop during the DND operation

It might go away if the DND takes too long otherwise...
This commit is contained in:
Benjamin Otte
2018-05-31 21:44:38 +02:00
parent b7ecfbce21
commit 4c961349ab

View File

@@ -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_;