Skip to content

Commit d3bb202

Browse files
author
Peter Andreas Entschev
committed
Fixed FAST C++ API, added proper destructor calls.
1 parent 07ea208 commit d3bb202

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api/cpp/fast.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ features fast(const array& in, const float thr, const unsigned arc_length,
1919
af_features temp;
2020
AF_THROW(af_fast(&temp, in.get(), thr, arc_length, non_max, feature_ratio));
2121
features out(temp);
22+
23+
af_destroy_array(temp.x);
24+
af_destroy_array(temp.y);
25+
af_destroy_array(temp.score);
26+
af_destroy_array(temp.orientation);
27+
af_destroy_array(temp.size);
28+
2229
return out;
2330
}
2431

0 commit comments

Comments
 (0)