mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
rtpmparobustdepay: avoid leaking bytewriter instance
This commit is contained in:
parent
cc4941797d
commit
c40807f6aa
1 changed files with 2 additions and 0 deletions
|
@ -792,6 +792,8 @@ gst_rtp_mpa_robust_change_state (GstElement * element,
|
||||||
g_queue_foreach (rtpmpadepay->adu_frames,
|
g_queue_foreach (rtpmpadepay->adu_frames,
|
||||||
(GFunc) gst_rtp_mpa_robust_depay_free_frame, NULL);
|
(GFunc) gst_rtp_mpa_robust_depay_free_frame, NULL);
|
||||||
g_queue_clear (rtpmpadepay->adu_frames);
|
g_queue_clear (rtpmpadepay->adu_frames);
|
||||||
|
if (rtpmpadepay->mp3_frame)
|
||||||
|
gst_byte_writer_free (rtpmpadepay->mp3_frame);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue