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:
parent
466813b7d5
commit
5589120dc8
1 changed files with 5 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue