File tree 2 files changed +10
-10
lines changed
matlab/src/cpp/arrow/matlab/c/proxy 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 26
26
27
27
namespace arrow ::matlab::c::proxy {
28
28
29
- Array::Array () : arrowArray{std::make_unique<ArrowArrayPtr>()} {}
29
+ struct ArrowArrayDeleter {
30
+ void operator ()(ArrowArray* array) const {
31
+ if (array) {
32
+ free (array);
33
+ }
34
+ }
35
+ };
36
+
37
+ Array::Array () : arrowArray{std::shared_ptr<ArrowArrayPtr>(new ArrowArray (), ArrowArrayDeleter ())} {}
30
38
31
39
Array::~Array () {
32
40
if (arrowArray && arrowArray->released != nullptr ) {
Original file line number Diff line number Diff line change 23
23
24
24
namespace arrow ::matlab::c::proxy {
25
25
26
- struct ArrowArrayDeleter {
27
- void operator ()(ArrowArray* array) const {
28
- if (array) {
29
- free (array);
30
- }
31
- }
32
- };
33
-
34
- using ArrowArrayPtr = std::unique_ptr<ArrowArray, arrow::matlab::c::proxy::ArrowArrayDeleter>;
26
+ using ArrowArrayPtr = std::shared_ptr<ArrowArray>;
35
27
36
28
37
29
class Array : public libmexclass ::proxy::Proxy {
You can’t perform that action at this time.
0 commit comments