Use lept_free instead of free for memory which was allocated by Leptonica

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-03-29 10:55:33 +02:00
parent 1b95eb1d19
commit 201686feb8

View File

@ -252,8 +252,8 @@ void GeneratePerspectiveDistortion(int width, int height, TRand *randomizer, Pix
b = new_box1.bounding_union(new_box2);
}
}
free(im_coeffs);
free(box_coeffs);
lept_free(im_coeffs);
lept_free(box_coeffs);
}
// Computes the coefficients of a randomized projective transformation.