Commit 7767dae9 authored by Paul Davis's avatar Paul Davis Committed by Kristian Rietveld

Small memory fix

parent 2f9c4be0
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment