microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
909 stars 283 forks source link

fix: do not attempt to release data channel memory twice #799

Closed torepaulsson closed 3 years ago

torepaulsson commented 3 years ago

PR for issue described in https://github.com/microsoft/MixedReality-WebRTC/issues/722

The data channel memory was freed twice, once by the caller and then once again by an event registration, from what I can tell the event registration is there to handle when a remote peer removes a data channel.

Also added some code so the NamedPipeSignaler demo doesn't crash as much.