Fix minor memory leaks

This commit is contained in:
Lawrence Lee
2020-06-11 12:41:43 -07:00
parent 24681f324c
commit 6c59f0586f
2 changed files with 8 additions and 8 deletions

View File

@@ -371,7 +371,7 @@ PerspectiveCorrection::Params PerspectiveCorrection::autocompute(ImageSource *sr
if (g.lines) free(g.lines);
if (g.points) free(g.points);
if (g.points_idx) free(g.points_idx);
free(g.buf);
if (g.buf) free(g.buf);
if (!res) {
retval.angle = pparams->perspective.camera_roll;