diff --git a/src/dawn/native/Blob.cpp b/src/dawn/native/Blob.cpp index ea4d28de92..cecac30e4f 100644 --- a/src/dawn/native/Blob.cpp +++ b/src/dawn/native/Blob.cpp @@ -53,6 +53,7 @@ Blob::Blob(uint8_t* data, size_t size, std::function deleter) Blob::Blob(Blob&& rhs) : mData(rhs.mData), mSize(rhs.mSize) { mDeleter = std::move(rhs.mDeleter); + rhs.mDeleter = nullptr; } Blob& Blob::operator=(Blob&& rhs) { @@ -62,6 +63,7 @@ Blob& Blob::operator=(Blob&& rhs) { mDeleter(); } mDeleter = std::move(rhs.mDeleter); + rhs.mDeleter = nullptr; return *this; }