summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-07-26 16:28:33 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-07-26 16:36:57 +0200
commit6bea98825d7c54b064d4afed5b14ca459100ab75 (patch)
tree9bc6bd1c4a6a5af0058d39646d0beb284708630b
parent28211bfb366302ead775eadd8458273a40dbf65b (diff)
downloadgstreamer-plugins-good-6bea98825d7c54b064d4afed5b14ca459100ab75.tar.gz
rtpmparobustdepay: avoid leaking bytewriter instance
-rw-r--r--gst/rtp/gstrtpmparobustdepay.c2
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: