mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
fix memmory leak based on issue 1488 (https://code.google.com/p/tesseract-ocr/issues/detail?id=1488)
This commit is contained in:
parent
5dfb0cb898
commit
d9376594a8
@ -167,6 +167,8 @@ int main(int argc, char* argv[])
|
||||
pCharList = CharList;
|
||||
iterate(pCharList) {
|
||||
//Cluster
|
||||
if (Clusterer)
|
||||
FreeClusterer(Clusterer);
|
||||
CharSample = (LABELEDLIST)first_node(pCharList);
|
||||
Clusterer =
|
||||
SetUpForClustering(FeatureDefs, CharSample, PROGRAM_FEATURE_TYPE);
|
||||
|
Loading…
Reference in New Issue
Block a user