From 835c9b75c8adb20f8a095a2bea486d59f16e72cc Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sun, 18 Sep 2011 22:48:53 -0400 Subject: [PATCH] g_private_new: use GSlice We no longer call g_private_new() from anywhere in GLib, so we can use gslice instead of malloc(). --- glib/gthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gthread.c b/glib/gthread.c index 87e9199cd..e45360e19 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -2455,7 +2455,7 @@ g_private_new (GDestroyNotify notify) { GPrivate *key; - key = malloc (sizeof (GPrivate)); + key = g_slice_new (GPrivate); g_private_init (key, notify); return key;