client-sdk-react-native icon indicating copy to clipboard operation
client-sdk-react-native copied to clipboard

IOS VideoCaptureController memory leaks

Open sergeymild opened this issue 1 year ago • 0 comments

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

  • @livekit/react-native: 2.3.1
  • react-native-webrtc: 125.0.0

sergeymild avatar Jun 25 '24 15:06 sergeymild