livekit / client-sdk-react-native

Official React Native SDK for LiveKit.
https://livekit.io
Apache License 2.0
123 stars 32 forks source link

IOS VideoCaptureController memory leaks #156

Open sergeymild opened 5 months ago

sergeymild commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

if write a code


- (void)dealloc {
    self.device = NULL;
    NSLog(@"‼️ ----=====");
}

in VideoCaptureController class after that open new room video local video and go out you will never see logs that VideoCaptureController was deallocated and if try to reproduce the same few time a few VideoCaptureController will be leaked

Expected behavior

VideoCaptureController should be deallocated after you left a room