mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
urisourcebin: Fix collection leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8080>
This commit is contained in:
parent
37087f129f
commit
abb11ad8b4
1 changed files with 4 additions and 0 deletions
|
@ -3051,6 +3051,10 @@ handle_message (GstBin * bin, GstMessage * msg)
|
|||
gst_message_new_stream_collection ((GstObject *) urisrc,
|
||||
aggregated);
|
||||
}
|
||||
if (aggregated) {
|
||||
/* Remove ref obtained from aggregate_collection() */
|
||||
gst_object_unref (aggregated);
|
||||
}
|
||||
gst_object_unref (collection);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue