diff options
Diffstat (limited to 'src/stream.cpp')
-rw-r--r-- | src/stream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stream.cpp b/src/stream.cpp index 1925419..9dfe5fc 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -33,8 +33,9 @@ void datastream_assign_by_copy(datastream_t *dst, const datastream_t *src) { *dst = *src; } -void datastream_assign_by_move(datastream_t *dst, datastream_t *src) { - *dst = std::move(*src); +void datastream_assign_by_move(datastream_t *dst, datastream_t *_moved_src) { + *dst = std::move(*_moved_src); + delete _moved_src; } uint8_t *datastream_data(datastream_t *self) { return self->data(); } |