Forgot to count the buffer deletion in move operator=
This commit is contained in:
parent
43a7df2de3
commit
f7e80452c4
1 changed files with 2 additions and 0 deletions
|
|
@ -250,6 +250,8 @@ public:
|
||||||
Buffer<Type>& operator=(Buffer<Type>&& other) noexcept
|
Buffer<Type>& operator=(Buffer<Type>&& other) noexcept
|
||||||
{
|
{
|
||||||
if (this != &other) {
|
if (this != &other) {
|
||||||
|
if (largerSize > 0)
|
||||||
|
_counter.bufferDeleted(largerSize * sizeof(value_type));
|
||||||
largerSize = other.largerSize;
|
largerSize = other.largerSize;
|
||||||
alignedSize = other.alignedSize;
|
alignedSize = other.alignedSize;
|
||||||
normalData = other.normalData;
|
normalData = other.normalData;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue