From c71cbf7721b846f80a20ffb8d2b3d8b6ce5a3150 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Fri, 27 Apr 2018 13:19:03 -0400 Subject: [PATCH] Fix leak in Metal's Device::GetPendingCommandBuffer(). GetPendingCommandBuffer() doesn't need to retain the metal command buffer; it's created with a ref. --- src/backend/metal/MetalBackend.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/metal/MetalBackend.mm b/src/backend/metal/MetalBackend.mm index e0eb7a315d..3275582b1b 100644 --- a/src/backend/metal/MetalBackend.mm +++ b/src/backend/metal/MetalBackend.mm @@ -152,7 +152,6 @@ namespace backend { namespace metal { id Device::GetPendingCommandBuffer() { if (mPendingCommands == nil) { mPendingCommands = [mCommandQueue commandBuffer]; - [mPendingCommands retain]; } return mPendingCommands; }