Commit 78f40a37 by Austin Kinross Committed by Jamie Madill

Fix memory leaks in WinRT InspectableNativeWindow

Change-Id: If88ac23ef5dbb67176bcc4b111100a0126269d08 Reviewed-on: https://chromium-review.googlesource.com/420474Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent da6254bf
......@@ -25,7 +25,7 @@ bool IsCoreWindow(EGLNativeWindowType window, ComPtr<ABI::Windows::UI::Core::ICo
{
if (coreWindow != nullptr)
{
*coreWindow = coreWin.Detach();
*coreWindow = coreWin;
}
return true;
}
......@@ -46,7 +46,7 @@ bool IsSwapChainPanel(EGLNativeWindowType window, ComPtr<ABI::Windows::UI::Xaml:
{
if (swapChainPanel != nullptr)
{
*swapChainPanel = panel.Detach();
*swapChainPanel = panel;
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment