diff options
author | Edward Hervey <bilboed@bilboed.com> | 2010-07-23 15:36:04 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2010-07-23 15:36:04 +0200 |
commit | 83280c66266885dc0254c161dd308781a34469d6 (patch) | |
tree | 46b60c4125947e627441c5df29139fe91545a9cd | |
parent | b2127f90b144a87d65a4406a36057d17e497e572 (diff) |
gnlcomposition: Use GSlice instead of malloc/free
-rw-r--r-- | gnl/gnlcomposition.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index b5a10ad..f9fb9e8 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -303,7 +303,7 @@ hash_value_destroy (GnlCompositionEntry * entry) if (entry->nomorepadshandler) g_signal_handler_disconnect (entry->object, entry->nomorepadshandler); - g_free (entry); + g_slice_free (GnlCompositionEntry, entry); } static void @@ -2487,7 +2487,7 @@ gnl_composition_add_object (GstBin * bin, GstElement * element) gst_element_set_locked_state (element, TRUE); /* wrap new element in a GnlCompositionEntry ... */ - entry = g_new0 (GnlCompositionEntry, 1); + entry = g_slice_new0 (GnlCompositionEntry); entry->object = (GnlObject *) element; if (G_LIKELY ((GNL_OBJECT_PRIORITY (element) != G_MAXUINT32) && !GNL_OBJECT_IS_EXPANDABLE (element))) { |