You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function ImGui_ImplDX11_Init() calls QueryInterface() several times, which increases the refcount of the interface it returns. However, Release() is never called on these interfaces. Relevant code below.
Hello @Vatora. This looks right, I have pushed a change to fix it for both DX10 and DX11 back-end (tested by enabling the D3D11_CREATE_DEVICE_DEBUG flag). Thank you for reporting this!
Version/Branch of Dear ImGui:
1.62
Back-end file/Renderer/OS:
imgui_impl_dx11.cpp / DirectX 11 / Windows
My Issue/Question:
The function ImGui_ImplDX11_Init() calls QueryInterface() several times, which increases the refcount of the interface it returns. However, Release() is never called on these interfaces. Relevant code below.
pDXGIDevice and pDXGIAdapter should be released before the function exits. g_pFactory also needs be released during shutdown.
The text was updated successfully, but these errors were encountered: