From ee8ae3000e39ab6a02058c6d510fc0b044b7016b Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 14 Jan 2014 12:44:06 +0100 Subject: [PATCH] rtprtxsend: remove unnecessary call to reset() from finalize() ...and use _free_full() on the pending buffers queue now that reset() is not being called --- gst/rtpmanager/gstrtprtxsend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c index d8347bc619..80cb5b9c1b 100644 --- a/gst/rtpmanager/gstrtprtxsend.c +++ b/gst/rtpmanager/gstrtprtxsend.c @@ -215,8 +215,6 @@ gst_rtp_rtx_send_finalize (GObject * object) { GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (object); - gst_rtp_rtx_send_reset (rtx); - g_hash_table_unref (rtx->ssrc_data); g_hash_table_unref (rtx->rtx_ssrcs); if (rtx->external_ssrc_map) @@ -224,7 +222,7 @@ gst_rtp_rtx_send_finalize (GObject * object) g_hash_table_unref (rtx->rtx_pt_map); if (rtx->rtx_pt_map_structure) gst_structure_free (rtx->rtx_pt_map_structure); - g_queue_free (rtx->pending); + g_queue_free_full (rtx->pending, (GDestroyNotify) gst_buffer_unref); G_OBJECT_CLASS (gst_rtp_rtx_send_parent_class)->finalize (object); }