dnd: Ref the GdkDrop during the DND operation
It might go away if the DND takes too long otherwise...
This commit is contained in:
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user