rtpmparobustdepay: avoid leaking bytewriter instance

This commit is contained in:
Mark Nauwelaerts 2012-07-26 16:28:33 +02:00
parent cc4941797d
commit c40807f6aa

View file

@ -792,6 +792,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: