evermeer / PassportScanner

Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer.
BSD 3-Clause "New" or "Revised" License
457 stars 101 forks source link

memory leak quick fix #36

Closed babucha closed 5 years ago

babucha commented 5 years ago

Ended up with just assigning nil to tesseract variable in viewWillDissappear method. Seems that it fixes the issue with deallocating memory after scan (either successful with result or aborted by a user).

evermeer commented 5 years ago

Thanks! I pushed the changes in PasportScannerController to master. So this PR can be closed. The changes to the project file are not needed.