Don't g_free gslice-allocated structures

This was causing memory corruption when removing remote plugs from
sockets.
This commit is contained in:
Matthias Clasen 2010-10-27 11:16:02 -04:00 committed by Tristan Van Berkom
parent 3cdf3bc46c
commit 965b3af8a1

View File

@ -1300,7 +1300,7 @@ gtk_drag_dest_set_proxy (GtkWidget *widget,
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (!proxy_window || GDK_IS_WINDOW (proxy_window));
site = g_new (GtkDragDestSite, 1);
site = g_slice_new (GtkDragDestSite);
site->flags = 0;
site->have_drag = FALSE;