Merge pull request #1325 from billhollings/swapchain-leak

Fix memory leak where swapchains and images were not destroyed due to a retention loop.