diff --git a/matlab/src/cpp/arrow/matlab/c/proxy/array.cc b/matlab/src/cpp/arrow/matlab/c/proxy/array.cc index 61a20c94fe7d8..2651f559c3d61 100644 --- a/matlab/src/cpp/arrow/matlab/c/proxy/array.cc +++ b/matlab/src/cpp/arrow/matlab/c/proxy/array.cc @@ -31,7 +31,9 @@ namespace arrow::matlab::c::proxy { } }; - Array::Array() : arrowArray{ArrowArrayPtr(new ArrowArray(), ArrowArrayDeleter())} {} + Array::Array() : arrowArray{ArrowArrayPtr(new ArrowArray(), ArrowArrayDeleter())} { + REGISTER_METHOD(Array, getAddress); + } Array::~Array() { if (arrowArray && arrowArray->release != nullptr) { @@ -52,5 +54,4 @@ namespace arrow::matlab::c::proxy { context.outputs[0] = factory.createScalar(address); } -} // namespace arrow::matlab::c::proxy - +} // namespace arrow::matlab::c::proxy \ No newline at end of file