Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
leeclemnet committed May 30, 2019
1 parent f7b955d commit 3324dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/viso_mono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ bool VisualOdometryMono::process(uint8_t *I, int32_t *dims, bool replace)

bool VisualOdometryMono::process(uint8_t *I1, uint8_t *I2, int32_t *dims, const bool replace)
{
p_matched.clear();
inliers.clear();
p_matched_inliers.clear();

matcher->pushBack(I1, dims, replace);
matcher->pushBack(I2, dims, replace);
matcher->matchFeatures(0);
Expand Down

0 comments on commit 3324dd1

Please sign in to comment.