mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
remove self. in release method
This commit is contained in:
parent
03a9fd46c7
commit
f888f47102
@ -203,11 +203,11 @@
|
||||
}
|
||||
|
||||
[self.captureSession stopRunning];
|
||||
[self.captureSession release];
|
||||
[captureSession release];
|
||||
}
|
||||
|
||||
[self.captureVideoPreviewLayer release];
|
||||
[self.videoCaptureConnection release];
|
||||
[captureVideoPreviewLayer release];
|
||||
[videoCaptureConnection release];
|
||||
captureSessionLoaded = NO;
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
||||
{
|
||||
[super stop];
|
||||
|
||||
[self.videoDataOutput release];
|
||||
[videoDataOutput release];
|
||||
if (videoDataOutputQueue) {
|
||||
dispatch_release(videoDataOutputQueue);
|
||||
}
|
||||
@ -144,11 +144,11 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
||||
} else {
|
||||
NSLog(@"[Camera] Recording Error: asset writer status is not writing");
|
||||
}
|
||||
[self.recordAssetWriter release];
|
||||
[recordAssetWriter release];
|
||||
}
|
||||
|
||||
[self.recordAssetWriterInput release];
|
||||
[self.recordPixelBufferAdaptor release];
|
||||
[recordAssetWriterInput release];
|
||||
[recordPixelBufferAdaptor release];
|
||||
}
|
||||
|
||||
if (self.customPreviewLayer) {
|
||||
|
Loading…
Reference in New Issue
Block a user