[gtk+/treeview-refactor] Don't g_free gslice-allocated structures
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Don't g_free gslice-allocated structures
- Date: Sat, 30 Oct 2010 08:34:21 +0000 (UTC)
commit 965b3af8a1c392caa2395df421396da5ccd572d2
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]