Skip to content

Commit 4034d48

Browse files
committed
Add arrow::matlab::c::proxy::Array destructor
1 parent c0c7669 commit 4034d48

File tree

1 file changed

+6
-0
lines changed
  • matlab/src/cpp/arrow/matlab/c/proxy

1 file changed

+6
-0
lines changed

matlab/src/cpp/arrow/matlab/c/proxy/array.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,10 @@ namespace arrow::matlab::c::proxy {
2828

2929
Array::Array() : arrowArray{std::make_unique<ArrowArrayPtr>()} {}
3030

31+
Array::~Array() {
32+
if (arrowArray && arrowArray->released != nullptr) {
33+
arrowArray->release(arrowArray.get());
34+
}
35+
}
36+
3137
} // namespace arrow::matlab::c::proxy

0 commit comments

Comments
 (0)