mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
decodebin3: fix memory leak when remove candidate decoder
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4955>
This commit is contained in:
parent
d5a9ca8ef6
commit
dbdbf2d256
1 changed files with 1 additions and 0 deletions
|
@ -949,6 +949,7 @@ remove_candidate_decoder (GstDecodebin3 * dbin, CandidateDecoder * candidate)
|
|||
g_list_remove (dbin->candidate_decoders, candidate);
|
||||
if (candidate->error)
|
||||
gst_message_unref (candidate->error);
|
||||
g_free (candidate);
|
||||
GST_OBJECT_UNLOCK (dbin);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue