Skip to content

Commit 32338b3

Browse files
committed
update destructor
1 parent 1bb1af4 commit 32338b3

File tree

1 file changed

+2
-1
lines changed
  • matlab/src/cpp/arrow/matlab/c/proxy

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace arrow::matlab::c::proxy {
3939
Array::~Array() {
4040
if (arrowArray && arrowArray->released != nullptr) {
4141
arrowArray->release(arrowArray.get());
42+
arrowArray->release = nullptr;
4243
}
4344
}
4445

@@ -54,5 +55,5 @@ namespace arrow::matlab::c::proxy {
5455
context.outputs[0] = factory.createScalar(address);
5556
}
5657

58+
} // namespace arrow::matlab::c::proxy
5759

58-
} // namespace arrow::matlab::c::proxy

0 commit comments

Comments
 (0)