Bug 390958. XPCWrappedNativeScope leaks a WrappedNative2WrapperMap. r=brendan/mrbkap, sr=brendan, a=jst

This commit is contained in:
sayrer@gmail.com 2007-08-06 20:57:15 -07:00
parent 12175aaf10
commit 804332784a

View File

@ -268,6 +268,11 @@ XPCWrappedNativeScope::~XPCWrappedNativeScope()
delete mWrappedNativeProtoMap;
}
if(mWrapperMap)
{
delete mWrapperMap;
}
// XXX we should assert that we are dead or that xpconnect has shutdown
// XXX might not want to do this at xpconnect shutdown time???
NS_IF_RELEASE(mComponents);