bug 1168202 - ia2AccessibleHyperlink::get_anchor needs to give the caller a reference to the anchor r=davidb

This commit is contained in:
Trevor Saunders 2015-05-25 15:50:55 -04:00
parent a3d0d81ab7
commit f108222964

View File

@ -55,7 +55,9 @@ ia2AccessibleHyperlink::get_anchor(long aIndex, VARIANT* aAnchor)
if (!anchor)
return S_FALSE;
aAnchor->punkVal = static_cast<IAccessibleHyperlink*>(WrapperFor(anchor));
IUnknown* tmp = static_cast<IAccessibleHyperlink*>(WrapperFor(anchor));
tmp->AddRef();
aAnchor->punkVal = tmp;
aAnchor->vt = VT_UNKNOWN;
return S_OK;
}