urisourcebin: Fix collection leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8080>
This commit is contained in:
parent
37087f129f
commit
abb11ad8b4
@ -3051,6 +3051,10 @@ handle_message (GstBin * bin, GstMessage * msg)
|
|||||||
gst_message_new_stream_collection ((GstObject *) urisrc,
|
gst_message_new_stream_collection ((GstObject *) urisrc,
|
||||||
aggregated);
|
aggregated);
|
||||||
}
|
}
|
||||||
|
if (aggregated) {
|
||||||
|
/* Remove ref obtained from aggregate_collection() */
|
||||||
|
gst_object_unref (aggregated);
|
||||||
|
}
|
||||||
gst_object_unref (collection);
|
gst_object_unref (collection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user