remove self. in release method

This commit is contained in:
panxiaochun 2016-10-28 14:48:49 +08:00
parent 03a9fd46c7
commit f888f47102
2 changed files with 7 additions and 7 deletions

View File

@ -203,11 +203,11 @@
}
[self.captureSession stopRunning];
[self.captureSession release];
[captureSession release];
}
[self.captureVideoPreviewLayer release];
[self.videoCaptureConnection release];
[captureVideoPreviewLayer release];
[videoCaptureConnection release];
captureSessionLoaded = NO;
}

View File

@ -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) {