From: Ryan Lortie Date: Mon, 19 Sep 2011 02:48:53 +0000 (-0400) Subject: g_private_new: use GSlice X-Git-Tag: 2.31.0~431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=835c9b75c8adb20f8a095a2bea486d59f16e72cc;p=platform%2Fupstream%2Fglib.git g_private_new: use GSlice We no longer call g_private_new() from anywhere in GLib, so we can use gslice instead of malloc(). --- diff --git a/glib/gthread.c b/glib/gthread.c index 87e9199..e45360e 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;