Skip to content

Commit

Permalink
Merge pull request guitarmind#4 from juokaz/patch-1
Browse files Browse the repository at this point in the history
Fix TessBaseAPIDelete call when init fails
  • Loading branch information
guitarmind committed Sep 18, 2015
2 parents 4437131 + 87932a8 commit 0cdb1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tesseractcapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, lang, libpath, tessdata):

rc = self.tesseract.TessBaseAPIInit3(self.api, tessdata, lang)
if (rc):
self.tesseract.TessBaseAPIDelete(api)
self.tesseract.TessBaseAPIDelete(self.api)
print("Could not initialize tesseract.\n")
exit(3)

Expand Down

0 comments on commit 0cdb1a5

Please sign in to comment.