diff --git a/mozilla/js/src/xpconnect/src/xpccomponents.cpp b/mozilla/js/src/xpconnect/src/xpccomponents.cpp index 51c0dff603c..716fe4bf208 100644 --- a/mozilla/js/src/xpconnect/src/xpccomponents.cpp +++ b/mozilla/js/src/xpconnect/src/xpccomponents.cpp @@ -1680,9 +1680,8 @@ nsXPCComponents::AttachNewComponentsObject(XPCCallContext& ccx, if(!iface) return JS_FALSE; - nsCOMPtr wrapper = - dont_AddRef(XPCWrappedNative:: - GetNewOrUsed(ccx, cholder, aScope, iface, nsnull)); + nsCOMPtr wrapper(dont_AddRef( + XPCWrappedNative::GetNewOrUsed(ccx, cholder, aScope, iface, nsnull))); if(!wrapper) return JS_FALSE;