From 513ffc45b5a6cec2f23ff68a673e75f92e8a3c8c Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 14 Jan 2014 11:55:00 +0100 Subject: [PATCH] rtprtxreceive: simplify the code of finalize() --- gst/rtpmanager/gstrtprtxreceive.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c index 72fc152..ba1bb3a 100644 --- a/gst/rtpmanager/gstrtprtxreceive.c +++ b/gst/rtpmanager/gstrtprtxreceive.c @@ -230,18 +230,8 @@ gst_rtp_rtx_receive_finalize (GObject * object) { GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (object); - gst_rtp_rtx_receive_reset (rtx); - - if (rtx->ssrc2_ssrc1_map) { - g_hash_table_destroy (rtx->ssrc2_ssrc1_map); - rtx->ssrc2_ssrc1_map = NULL; - } - - if (rtx->seqnum_ssrc1_map) { - g_hash_table_destroy (rtx->seqnum_ssrc1_map); - rtx->seqnum_ssrc1_map = NULL; - } - + g_hash_table_unref (rtx->ssrc2_ssrc1_map); + g_hash_table_unref (rtx->seqnum_ssrc1_map); g_hash_table_unref (rtx->rtx_pt_map); if (rtx->pending_rtx_pt_map) gst_structure_free (rtx->pending_rtx_pt_map); -- 2.7.4