Small memory fix

This commit is contained in:
Paul Davis 2010-01-22 21:08:11 +01:00 committed by Kristian Rietveld
parent 2f9c4be0a8
commit 7767dae9cf

View File

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