Community
cancel
Showing results for 
Search instead for 
Did you mean: 
damonli
Beginner
167 Views

WebRTC4.3.1 Memory Leak

OS Platform:Windows10

Language:C++

 

There are two strange problems i encountered:

1.If remote_stream->stop first and then local_sream->close, it cannot close camera at all(LED is still on).

2.Memory leak: it will leak about 13M bytes for each conference.

 

The main steps of local hangup are below:

m_p2p_publication->Stop();
m_remote_stream->DetachVideoRenderer();
m_local_stream->Close();

 

One special test to illustrate:

step 1: LocalPeer do not register OnStreamAdded callback and do not publish local stream.

step 2: So LocalPeer  will do nothing after Connect

step 3: RemotePeer publish stream manually and stop after a while.

step 4: memory will leak about 13MBytes after remote stop publish every time.

 

Any Problems? Thank you!

0 Kudos
0 Replies
Reply