mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
fixed a double-unreffing problem when disposing of elements
Original commit message from CVS: fixed a double-unreffing problem when disposing of elements
This commit is contained in:
parent
680fdd6ce7
commit
04da163496
1 changed files with 2 additions and 1 deletions
|
@ -963,7 +963,8 @@ gst_element_dispose (GObject *object)
|
|||
orig = pads = g_list_copy (element->pads);
|
||||
while (pads) {
|
||||
pad = GST_PAD (pads->data);
|
||||
gst_object_unref (GST_OBJECT (pad));
|
||||
// the gst_object_unparent will do the unreffing
|
||||
gst_element_remove_pad(element, pad);
|
||||
pads = g_list_next (pads);
|
||||
}
|
||||
g_list_free (orig);
|
||||
|
|
Loading…
Reference in a new issue