summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-27 11:16:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-10-27 11:18:46 -0400
commitf5207ab6478901469d9ce6f928121f956d0ed7ac (patch)
tree8773806eb779f0062d56e373838593773c514f9d /gtk/gtkdnd.c
parentfb0a72dc0f63dc4e9d8c56450a1da33de842fd7e (diff)
downloadgtk+-f5207ab6478901469d9ce6f928121f956d0ed7ac.tar.gz
Don't g_free gslice-allocated structures
This was causing memory corruption when removing remote plugs from sockets.
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index b36960a5c6..d951181632 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -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;