AlexKMDev / WebRTC

Unofficial builds of Google WebRTC iOS Framework
https://webrtc.org/native-code/ios/
Other
292 stars 76 forks source link

webrtc related variables are deallocated before view dismiss causing crash. #42

Open FawadMasud opened 6 years ago

FawadMasud commented 6 years ago

I am using this library for audio calling and everything is working fine except when I dismiss my view controller, I get EXC_BAD_ACCESS error. I am making peerconnection (instance of RTCPeerconnection) a global variable and when the view controller dismisses, the application crashes because peerconnection is already deallocated. Please help me solve this. Thanks.