Skip to content

Commit

Permalink
fix: Fix memory leak for screen capture on macOS. (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc authored Mar 7, 2023
1 parent 49058cc commit a067eae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/objc/native/src/objc_desktop_capture.mm
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
rotation:RTCVideoRotation_0
timeStampNs:timeStampNs];

CVPixelBufferRelease(pixelBuffer);
[delegate_ didCaptureVideoFrame:videoFrame];
}

Expand Down

0 comments on commit a067eae

Please sign in to comment.