diff --git a/accessible/xpcom/xpcAccessible.cpp b/accessible/xpcom/xpcAccessible.cpp index 8a6b56d7ac5..2f3f74caf46 100644 --- a/accessible/xpcom/xpcAccessible.cpp +++ b/accessible/xpcom/xpcAccessible.cpp @@ -139,7 +139,7 @@ xpcAccessible::GetChildren(nsIArray** aChildren) children->AppendElement(static_cast(ToXPC(child)), false); } - NS_ADDREF(*aChildren = children); + children.forget(aChildren); return NS_OK; }