mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-18 11:28:51 +08:00
ccstruct/polyblk: Fix memory leak
Coverity report: CID 1164730 (#1 of 1): Resource leak (RESOURCE_LEAK) 4. leaked_storage: Variable lines going out of scope leaks the storage it points to. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c12757b53e
commit
aa945bb371
@ -294,6 +294,8 @@ void POLY_BLOCK::fill(ScrollView* window, ScrollView::Color colour) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete lines;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user