fix: memory leaks with BufferFactory being held

This commit is contained in:
David Zhao
2021-06-14 22:53:29 -07:00
parent 48a9971b3a
commit 2cecbad29d
4 changed files with 16 additions and 5 deletions
+1
View File
@@ -250,6 +250,7 @@ func (r *RoomManager) StartSession(roomName string, pi routing.ParticipantInit,
pv := types.ProtocolVersion(pi.ProtocolVersion)
rtcConf := *r.rtcConfig
rtcConf.SetBufferFactory(room.GetBufferFactor())
if pi.UsePlanB {
rtcConf.Configuration.SDPSemantics = webrtc.SDPSemanticsPlanB
}