mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00
Bug 1783098: Fix COM reference leak in MsaaRootAccessible::get_accFocus. r=morgan
NativeAccessible AddRefs, so we don't want to implicitly AddRef again when assigning to a RefPtr. Differential Revision: https://phabricator.services.mozilla.com/D153699
This commit is contained in:
parent
3978bd8144
commit
1b18b0a41d
@ -139,7 +139,7 @@ MsaaRootAccessible::get_accFocus(
|
||||
if (!docProxy) {
|
||||
return hr;
|
||||
}
|
||||
RefPtr<IDispatch> docDisp = NativeAccessible(docProxy);
|
||||
RefPtr<IDispatch> docDisp = already_AddRefed(NativeAccessible(docProxy));
|
||||
if (!docDisp) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user