1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Fix bug

This commit is contained in:
winlin 2020-08-19 17:48:59 +08:00
parent 466813b7d5
commit 5589120dc8

View file

@ -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()