mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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,
|
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…
Reference in a new issue