Fix memory leak in vkQueueWaitIdle
There was a missing autorelease pool. Fixes #2223.
This commit is contained in:
parent
e361c2ae67
commit
9893b3ac25
@ -145,9 +145,12 @@ VkResult MVKQueue::waitIdle(MVKCommandUse cmdUse) {
|
|||||||
VkResult rslt = _device->getConfigurationResult();
|
VkResult rslt = _device->getConfigurationResult();
|
||||||
if (rslt != VK_SUCCESS) { return rslt; }
|
if (rslt != VK_SUCCESS) { return rslt; }
|
||||||
|
|
||||||
auto* mtlCmdBuff = getMTLCommandBuffer(cmdUse);
|
@autoreleasepool {
|
||||||
[mtlCmdBuff commit];
|
auto* mtlCmdBuff = getMTLCommandBuffer(cmdUse);
|
||||||
[mtlCmdBuff waitUntilCompleted];
|
|
||||||
|
[mtlCmdBuff commit];
|
||||||
|
[mtlCmdBuff waitUntilCompleted];
|
||||||
|
}
|
||||||
|
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user