# At what point is dealloc on WebRTCModule meant to be called

**URL:** <https://react-native-webrtc.discourse.group/t/at-what-point-is-dealloc-on-webrtcmodule-meant-to-be-called/910>\
**Category:** iOS\
**Created:** [August 19, 2020, 12:49am UTC](https://react-native-webrtc.discourse.group/t/at-what-point-is-dealloc-on-webrtcmodule-meant-to-be-called/910 "2020-08-19T00:49:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johngreiner](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@johngreiner](https://react-native-webrtc.discourse.group/u/johngreiner)\
**Post date:** [August 19, 2020, 12:49am UTC](https://react-native-webrtc.discourse.group/t/at-what-point-is-dealloc-on-webrtcmodule-meant-to-be-called/910/1 "2020-08-19T00:49:44Z")

</div>

[https://github.com/react-native-webrtc/react-native-webrtc/blob/master/ios/RCTWebRTC/WebRTCModule.m#L30](https://github.com/react-native-webrtc/react-native-webrtc/blob/master/ios/RCTWebRTC/WebRTCModule.m#L30) Never seems to fire for me. At what point would you expect this to be deallocated / how can it be made to deallocate?

I have a two screen ios app. The 2nd screen is behind a login and that’s where the import and peer connections are set up. Upon leaving the 2nd screen it closes the peer connection… but it never calls this dealloc method on WebRTCModule.
