Skip to content

Commit

Permalink
Fix double free in function vigorous_noise_removal (fixes issue #3876)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 19, 2022
1 parent 99d6717 commit ee34b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textord/makerow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ void vigorous_noise_removal(TO_BLOCK *block) {
}
}
// It might be noise so get rid of it.
delete blob->cblob();
delete blob->remove_cblob();
delete b_it.extract();
} else {
prev = blob;
Expand Down

0 comments on commit ee34b10

Please sign in to comment.