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

This commit is contained in:
Henrik Rydgård
2017-12-10 14:37:28 +01:00
parent 91b089d90d
commit cca4e0b2ca
3 changed files with 19 additions and 2 deletions
+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;