From 5589120dc8d985b4102f691336834e02073b19b0 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 19 Aug 2020 17:48:59 +0800 Subject: [PATCH] RTC: Fix bug --- trunk/src/app/srs_app_rtc_conn.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trunk/src/app/srs_app_rtc_conn.cpp b/trunk/src/app/srs_app_rtc_conn.cpp index f3d5d3094..0920600fe 100644 --- a/trunk/src/app/srs_app_rtc_conn.cpp +++ b/trunk/src/app/srs_app_rtc_conn.cpp @@ -1448,10 +1448,6 @@ SrsRtcConnection::SrsRtcConnection(SrsRtcServer* s, SrsContextId context_id) SrsRtcConnection::~SrsRtcConnection() { srs_freep(timer_); - srs_freep(transport_); - srs_freep(req); - srs_freep(stat_); - srs_freep(pp_address_change); // Note that we should never delete the sendonly_skt, // it's just point to the object in peer_addresses_. @@ -1476,6 +1472,11 @@ SrsRtcConnection::~SrsRtcConnection() } players_.clear(); players_ssrc_map_.clear(); + + srs_freep(transport_); + srs_freep(req); + srs_freep(stat_); + srs_freep(pp_address_change); } SrsSdp* SrsRtcConnection::get_local_sdp()