projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ebd842
)
g_private_new: use GSlice
author
Ryan Lortie
<desrt@desrt.ca>
Mon, 19 Sep 2011 02:48:53 +0000
(22:48 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:54 +0000
(16:06 -0400)
We no longer call g_private_new() from anywhere in GLib, so we can use
gslice instead of malloc().
glib/gthread.c
patch
|
blob
|
history
diff --git
a/glib/gthread.c
b/glib/gthread.c
index
87e9199
..
e45360e
100644
(file)
--- a/
glib/gthread.c
+++ b/
glib/gthread.c
@@
-2455,7
+2455,7
@@
g_private_new (GDestroyNotify notify)
{
GPrivate *key;
{
GPrivate *key;
- key =
malloc (sizeof (GPrivate)
);
+ key =
g_slice_new (GPrivate
);
g_private_init (key, notify);
return key;
g_private_init (key, notify);
return key;