diff --git a/Demos/Cube/Cube.xcodeproj/xcshareddata/xcschemes/Cube-macOS.xcscheme b/Demos/Cube/Cube.xcodeproj/xcshareddata/xcschemes/Cube-macOS.xcscheme index e7696f2d..fc957fc2 100644 --- a/Demos/Cube/Cube.xcodeproj/xcshareddata/xcschemes/Cube-macOS.xcscheme +++ b/Demos/Cube/Cube.xcodeproj/xcshareddata/xcschemes/Cube-macOS.xcscheme @@ -62,7 +62,8 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> - + - + diff --git a/Docs/Whats_New.md b/Docs/Whats_New.md index 6ae284d2..ffbe5e70 100644 --- a/Docs/Whats_New.md +++ b/Docs/Whats_New.md @@ -36,6 +36,7 @@ Released TBD - On command buffer submission failure, if `MVKConfiguration::resumeLostDevice` enabled, do not release waits on `VkDevice`, and do not return `VK_ERROR_DEVICE_LOST`, unless `VkPhysicalDevice` is also lost. - Fix inconsistent handling of linear attachment decisions on Apple Silicon. +- Fix small memory leak during swapchain creation. - Protect against crash when retrieving `MTLTexture` when `VkImage` has no `VkDeviceMemory` bound. - Adjust some `VkPhysicalDeviceLimits` values for Vulkan and Metal compliance. - Fix internal reference from `SPIRV_CROSS_NAMESPACE_OVERRIDE` to `SPIRV_CROSS_NAMESPACE`. diff --git a/MoltenVK/MoltenVK/Utility/MVKBlockObserver.m b/MoltenVK/MoltenVK/Utility/MVKBlockObserver.m index af58a6c8..c0314e97 100644 --- a/MoltenVK/MoltenVK/Utility/MVKBlockObserver.m +++ b/MoltenVK/MoltenVK/Utility/MVKBlockObserver.m @@ -47,6 +47,7 @@ - (void)dealloc { [self stopObserving]; + [_block release]; [super dealloc]; }