Commit 95ed55b7 authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Simplify ioscapture layer init

parent ec0a638d
......@@ -42,13 +42,7 @@
- (id)init {
AVCaptureSession *tmp_session = [[AVCaptureSession alloc] init];
self = [super initWithSession:tmp_session];
if(self != nil) {
self.session = tmp_session;
}
[tmp_session release];
return self;
return [super initWithSession:[[[AVCaptureSession alloc] init] autorelease]];
}
@end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment