Deleting void pointers is bad, mmmkay?

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2129483003

Review-Url: https://codereview.chromium.org/2129483003
This commit is contained in:
jvanverth 2016-07-06 14:26:53 -07:00 committed by Commit bot
parent 2edb0f4a02
commit 47e3dbaab5

View File

@ -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 fMapPtr;
delete (unsigned char*) fMapPtr;
}
fMapPtr = nullptr;