Commit 04019f40 authored by Wim Taymans's avatar Wim Taymans

libs/gst/base/gstcollectpads.c: unref data at the end when we are done with the pad.

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad):
unref data at the end when we are done with the pad.
parent 702fbf77
2007-01-09 Wim Taymans <wim@fluendo.com>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad):
unref data at the end when we are done with the pad.
2007-01-08 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/gstreamer-sections.txt:
......
......@@ -347,9 +347,6 @@ gst_collect_pads_remove_pad (GstCollectPads * pads, GstPad * pad)
g_slist_delete_link (pads->abidata.ABI.pad_list, list);
pads->abidata.ABI.pad_cookie++;
/* clean and free the collect data */
unref_data (data);
/* signal waiters because something changed */
GST_COLLECT_PADS_BROADCAST (pads);
......@@ -357,6 +354,9 @@ gst_collect_pads_remove_pad (GstCollectPads * pads, GstPad * pad)
if (!pads->started)
gst_pad_set_active (pad, FALSE);
/* clean and free the collect data */
unref_data (data);
GST_COLLECT_PADS_PAD_UNLOCK (pads);
return TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment