diff options
author | Determinant <[email protected]> | 2019-06-16 23:24:49 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-16 23:24:49 -0400 |
commit | 74e4246565ba5814a92ed9f84b13b17226f219d1 (patch) | |
tree | 161a15482225dce9a3940e70bfd3b5e1a50cf497 /src/stream.cpp | |
parent | 77a765023bff4fa3d41001bdc1de9d106e35f348 (diff) |
do not free the moved pointer for C API; misc changes
Diffstat (limited to 'src/stream.cpp')
-rw-r--r-- | src/stream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.cpp b/src/stream.cpp index 1d88785..13ee98f 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -51,7 +51,7 @@ bool datastream_assign_by_copy(datastream_t *dst, const datastream_t *src) { bool datastream_assign_by_move(datastream_t *dst, datastream_t *_moved_src) { try { *dst = std::move(*_moved_src); - delete _moved_src; + //delete _moved_src; } catch (...) { return false; } return true; } @@ -108,7 +108,7 @@ uint256_t *datastream_get_hash(const datastream_t *self) { bytearray_t *bytearray_new_moved_from_datastream(datastream_t *_moved_src) { try { auto res = new bytearray_t(std::move(*_moved_src)); - delete _moved_src; + //delete _moved_src; return res; } catch (...) { return nullptr; |