aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-07 22:35:27 -0400
committerDeterminant <[email protected]>2019-06-07 22:35:27 -0400
commit0f3b3ed832db7062c805e82a9605b777595e340c (patch)
tree074d79efebf48f668a37af29513a6102e06cc051 /src
parentf7050c145e81a70be85bb0287044abdfa7ba444f (diff)
...
Diffstat (limited to 'src')
-rw-r--r--src/stream.cpp5
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(); }