From 6e2fff5710858b02ebe7c1c7f3bdbe28943108b8 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 15 Apr 2022 00:10:43 +0200 Subject: [PATCH] Add size field in AudioShm move constructors --- src/common/audio-shm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/audio-shm.cpp b/src/common/audio-shm.cpp index fbf4bfe4..d0f95475 100644 --- a/src/common/audio-shm.cpp +++ b/src/common/audio-shm.cpp @@ -48,7 +48,8 @@ AudioShmBuffer::~AudioShmBuffer() noexcept { AudioShmBuffer::AudioShmBuffer(AudioShmBuffer&& o) noexcept : config_(std::move(o.config_)), shm_fd_(std::move(o.shm_fd_)), - shm_bytes_(std::move(o.shm_bytes_)) { + shm_bytes_(std::move(o.shm_bytes_)), + shm_size_(std::move(o.shm_size_)) { o.is_moved_ = true; } @@ -56,6 +57,7 @@ AudioShmBuffer& AudioShmBuffer::operator=(AudioShmBuffer&& o) noexcept { config_ = std::move(o.config_); shm_fd_ = std::move(o.shm_fd_); shm_bytes_ = std::move(o.shm_bytes_); + shm_size_ = std::move(o.shm_size_); o.is_moved_ = true; return *this;