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
@@ -353,7 +353,7 @@ void VulkanDeviceAllocator::ExecuteFree(FreeInfo *userdata) {
slab.allocSizes.erase(it);
} else {
// Ack, a double free?
Crash();
_assert_msg_(G3D, false, "Double free? Block missing at offset %d", userdata->offset);
}
found = true;
break;