Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index e8fe619a435fa1052c09f3b9dcb7fc94a30d1980..85d6de8b01394b198f61fd810f2054213d314bf8 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -153,7 +153,7 @@ void GrVkBuffer::vkUnmap(GrVkGpu* gpu) { |
VK_CALL(gpu, UnmapMemory(gpu->device(), this->alloc().fMemory)); |
} else { |
gpu->updateBuffer(this, fMapPtr, this->size()); |
- delete (unsigned char*) fMapPtr; |
+ delete [] (unsigned char*)fMapPtr; |
} |
fMapPtr = nullptr; |