Skip to content

Commit

Permalink
Merge pull request ldiqual#12 from Psidium/master
Browse files Browse the repository at this point in the history
Added free(_pixels) in clear method to release memory used by the image
  • Loading branch information
ldiqual committed Oct 12, 2013
2 parents 1a580e6 + a84869b commit b2f5d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ - (NSString *)recognizedText {

- (void)clear
{
free(_pixels);
_tesseract->Clear();
_tesseract->End();
}
Expand Down

0 comments on commit b2f5d07

Please sign in to comment.