mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Small memory fix
This commit is contained in:
parent
2f9c4be0a8
commit
7767dae9cf
@ -505,8 +505,6 @@ gtk_drag_dest_set (GtkWidget *widget,
|
||||
|
||||
old_site = g_object_get_data (G_OBJECT (widget), "gtk-drag-dest");
|
||||
|
||||
gtk_drag_dest_unset (widget);
|
||||
|
||||
site = g_new (GtkDragDestSite, 1);
|
||||
site->flags = flags;
|
||||
site->have_drag = FALSE;
|
||||
@ -521,6 +519,8 @@ gtk_drag_dest_set (GtkWidget *widget,
|
||||
else
|
||||
site->track_motion = FALSE;
|
||||
|
||||
gtk_drag_dest_unset (widget);
|
||||
|
||||
if (GTK_WIDGET_REALIZED (widget))
|
||||
gtk_drag_dest_realized (widget, site);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user