From dd086a4e6e5e8d63fa57310129007600de2610d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 14 Jan 2014 13:44:11 +0100 Subject: [PATCH] parse: Use GSlice for allocating and freeing links and chains --- gst/parse/types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/parse/types.h b/gst/parse/types.h index 16f04b7..fbeaf20 100644 --- a/gst/parse/types.h +++ b/gst/parse/types.h @@ -63,10 +63,10 @@ G_GNUC_INTERNAL void __gst_parse_chain_free (chain_t *data); #else /* __GST_PARSE_TRACE */ # define gst_parse_strdup g_strdup # define gst_parse_strfree g_free -# define gst_parse_link_new() g_new0 (link_t, 1) -# define gst_parse_link_free g_free -# define gst_parse_chain_new() g_new0 (chain_t, 1) -# define gst_parse_chain_free g_free +# define gst_parse_link_new() g_slice_new0 (link_t) +# define gst_parse_link_free(l) g_slice_free (link_t, l) +# define gst_parse_chain_new() g_slice_new0 (chain_t) +# define gst_parse_chain_free(c) g_slice_free (chain_t, c) #endif /* __GST_PARSE_TRACE */ static inline void -- 2.7.4