remove cap session i/o before release; causes core dumps on 3G

git-svn-id: https://zxing.googlecode.com/svn/trunk@2302 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2012-06-05 20:08:09 +00:00
parent dccbd28954
commit 4f1c884797

View file

@ -371,6 +371,12 @@ static bool isIPad();
}
- (void)dealloc {
if (input && session) {
[session removeInput:input];
}
if (output && session) {
[session removeOutput:output];
}
[captureToFilename release];
[binary release];
[luminance release];