mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Don't g_free gslice-allocated structures
This was causing memory corruption when removing remote plugs from sockets.
This commit is contained in:
parent
fb0a72dc0f
commit
f5207ab647
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user