Skip to content

Commit de4eb31

Browse files
committed
Fix memory leak when using CORNER_REFINE_APRILTAG.
1 parent 49b1cdf commit de4eb31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/aruco/src/aruco.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,8 @@ static void _apriltag(Mat im_orig, const Ptr<DetectorParameters> & _params, std:
10941094

10951095
candidates.push_back(corners);
10961096
}
1097+
1098+
_zarray_destroy(quads);
10971099
}
10981100

10991101

0 commit comments

Comments
 (0)