[gtk+/kill-size-request] Don't g_free gslice-allocated structures
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/kill-size-request] Don't g_free gslice-allocated structures
- Date: Wed, 27 Oct 2010 15:19:28 +0000 (UTC)
commit f5207ab6478901469d9ce6f928121f956d0ed7ac
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 27 11:16:02 2010 -0400
Don't g_free gslice-allocated structures
This was causing memory corruption when removing remote plugs from
sockets.
gtk/gtkdnd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index b36960a..d951181 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]