Fix another case where we trusted std::move to clear the origin, which is not guaranteed.

This commit is contained in:
Henrik Rydgård committed 2017-12-10 14:37:28 +01:00
1 parent 91b089d90d
commit cca4e0b2ca
3 files changed
+19 -2

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@ private:
static void DispatchFree(void *userdata) {
auto freeInfo = static_cast<FreeInfo *>(userdata);
freeInfo->allocator->ExecuteFree(freeInfo);
freeInfo->allocator->ExecuteFree(freeInfo); // this deletes freeInfo
}
bool AllocateSlab(VkDeviceSize minBytes);