mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
opusenc: fix slist leak
This commit is contained in:
parent
2ca8f88ecc
commit
d6b60c62e6
1 changed files with 2 additions and 0 deletions
|
@ -360,6 +360,7 @@ gst_opus_enc_stop (GstAudioEncoder * benc)
|
|||
gst_tag_list_free (enc->tags);
|
||||
enc->tags = NULL;
|
||||
g_slist_foreach (enc->headers, (GFunc) gst_buffer_unref, NULL);
|
||||
g_slist_free (enc->headers);
|
||||
enc->headers = NULL;
|
||||
gst_tag_setter_reset_tags (GST_TAG_SETTER (enc));
|
||||
|
||||
|
@ -885,6 +886,7 @@ gst_opus_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
|
|||
GstCaps *caps;
|
||||
|
||||
g_slist_foreach (enc->headers, (GFunc) gst_buffer_unref, NULL);
|
||||
g_slist_free (enc->headers);
|
||||
enc->headers = NULL;
|
||||
|
||||
gst_opus_header_create_caps (&caps, &enc->headers, enc->n_channels,
|
||||
|
|
Loading…
Reference in a new issue