Skip to content

Commit

Permalink
Merge pull request #2225 from ulowen/main
Browse files Browse the repository at this point in the history
Fix memory leak in vkQueueWaitIdle
  • Loading branch information
billhollings authored May 4, 2024
2 parents e361c2a + 9893b3a commit e0a77df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MoltenVK/MoltenVK/GPUObjects/MVKQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@
VkResult rslt = _device->getConfigurationResult();
if (rslt != VK_SUCCESS) { return rslt; }

auto* mtlCmdBuff = getMTLCommandBuffer(cmdUse);
[mtlCmdBuff commit];
[mtlCmdBuff waitUntilCompleted];
@autoreleasepool {
auto* mtlCmdBuff = getMTLCommandBuffer(cmdUse);

[mtlCmdBuff commit];
[mtlCmdBuff waitUntilCompleted];
}

return VK_SUCCESS;
}
Expand Down

0 comments on commit e0a77df

Please sign in to comment.