summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-manager.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-02-24 11:52:00 +0000
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-02-24 11:54:33 +0000
commit6d14b2b45c111bc99d6ecbbf81b30edbdd61a191 (patch)
tree51d856e837850235c701d257d72f64058c316fdc /telepathy-logger/log-manager.c
parent3ac097b41291ad5fc83281b0519b90aa31244f3e (diff)
downloadtelepathy-logger-6d14b2b45c111bc99d6ecbbf81b30edbdd61a191.tar.gz
Let glib allocate the GList element for us
GList elements are usually allocated using the slice allocator, not pure malloc, but we can't rely on that. So instead of allocating the structure ourselves use the dedicated allocation function.
Diffstat (limited to 'telepathy-logger/log-manager.c')
-rw-r--r--telepathy-logger/log-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c
index 5974efa..e076561 100644
--- a/telepathy-logger/log-manager.c
+++ b/telepathy-logger/log-manager.c
@@ -235,7 +235,7 @@ _take_list (GList *list)
if (list != NULL)
{
- copy = g_new0 (GList, 1);
+ copy = g_list_alloc ();
memcpy (copy, list, sizeof (GList));
memset (list, 0, sizeof (GList));
}