Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago.

This commit is contained in:
jband%netscape.com 2000-04-20 12:16:45 +00:00
parent 65013f77f6
commit dc13704f3f

View File

@ -214,8 +214,8 @@ nsXPCWrappedNative::GetNewOrUsedWrapper(XPCContext* xpcc,
if(!rootClazz)
goto return_wrapper;
root = new nsXPCWrappedNative(xpcc, realObj, aScope,
aGlobalObject, clazz, nsnull);
root = new nsXPCWrappedNative(xpcc, rootObj, aScope,
aGlobalObject, rootClazz, nsnull);
NS_RELEASE(rootClazz);
if(!root)