diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-26 16:28:33 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-26 16:36:57 +0200 |
commit | 6bea98825d7c54b064d4afed5b14ca459100ab75 (patch) | |
tree | 9bc6bd1c4a6a5af0058d39646d0beb284708630b | |
parent | 28211bfb366302ead775eadd8458273a40dbf65b (diff) |
rtpmparobustdepay: avoid leaking bytewriter instance
-rw-r--r-- | gst/rtp/gstrtpmparobustdepay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpmparobustdepay.c b/gst/rtp/gstrtpmparobustdepay.c index 17645a49a..8580c0d15 100644 --- a/gst/rtp/gstrtpmparobustdepay.c +++ b/gst/rtp/gstrtpmparobustdepay.c @@ -775,6 +775,8 @@ gst_rtp_mpa_robust_change_state (GstElement * element, g_queue_foreach (rtpmpadepay->adu_frames, (GFunc) gst_rtp_mpa_robust_depay_free_frame, NULL); g_queue_clear (rtpmpadepay->adu_frames); + if (rtpmpadepay->mp3_frame) + gst_byte_writer_free (rtpmpadepay->mp3_frame); break; } default: |