Leaking IAccessible from WM_GETOBJECT |
||
Issue descriptionFrom Nektar: ---- On https://msdn.microsoft.com/en-us/library/windows/desktop/dd318451(v=vs.85).aspx it says that when a window handles the WM_GETOBJECT message it should pass an IAccessible pointer to LresultFromObject and return the HRESULT to the client after which it should release the pointer. We don't do this meaning that our accessibility objects will never get destroyed. See legacy_render_widget_host_win.cc ---- Looking at how this call is handled in Gecko, they do release after this call: https://dxr.mozilla.org/mozilla-central/source/accessible/windows/msaa/nsWinUtils.cpp#183
,
May 17 2018
We use Microsoft::WRL::ComPtr to hold the IAccessible ptr which releases when it goes out of scope: Example: https://cs.chromium.org/chromium/src/content/browser/renderer_host/legacy_render_widget_host_win.cc?type=cs&sq=package:chromium&g=0&l=247 |
||
►
Sign in to add a comment |
||
Comment 1 by dougt@chromium.org
, Dec 1 2017