Skip to content

Commit

Permalink
Fix regression with iOS releaseNativeBuffer (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Apr 17, 2024
1 parent 9d7d23b commit a01d899
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions package/ios/RNSkia-iOS/RNSkiOSPlatformContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@
}

void RNSkiOSPlatformContext::releaseNativeBuffer(uint64_t pointer) {
CMSampleBufferRef sampleBuffer = reinterpret_cast<CMSampleBufferRef>(pointer);
CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
if (sampleBuffer) {
CFRelease(sampleBuffer);
}
CVPixelBufferRef pixelBuffer = reinterpret_cast<CVPixelBufferRef>(pointer);
if (pixelBuffer) {
CFRelease(pixelBuffer);
}
Expand Down

0 comments on commit a01d899

Please sign in to comment.