fix use after free

pull/1/head
cosmonaut 2022-01-03 10:36:47 -08:00
parent ca07286e29
commit c7666cd8fc
1 changed files with 5 additions and 4 deletions

View File

@ -8067,6 +8067,7 @@ static void VULKAN_INTERNAL_ResetCommandBuffer(
} }
SDL_free(commandBuffer->transferBuffers); SDL_free(commandBuffer->transferBuffers);
commandBuffer->transferBuffers = NULL;
commandBuffer->transferBufferCount = 0; commandBuffer->transferBufferCount = 0;
commandBuffer->submitted = 0; commandBuffer->submitted = 0;