Fix DEBUG_CC build. NPOTB.

This commit is contained in:
Peter Van der Beken 2009-01-24 18:28:33 +01:00
parent 223e74556b
commit 9c4ef0c065

View File

@ -741,8 +741,8 @@ nsXPConnect::Traverse(void *p, nsCycleCollectionTraversalCallback &cb)
JSClass *clazz = OBJ_GET_CLASS(cx, obj);
if(XPCNativeWrapper::IsNativeWrapperClass(clazz))
{
XPCWrappedNative* wn = XPCNativeWrapper::GetWrappedNative(obj);
if(wn)
XPCWrappedNative* wn;
if(XPCNativeWrapper::GetWrappedNative(cx, obj, &wn) && wn)
{
XPCNativeScriptableInfo* si = wn->GetScriptableInfo();
if(si)