Bug 414977 - "insufficient unlink methods in some DOM classes?". Fix for DEBUG_xpc_hacker builds. Not part of the normal build, r+sr+a=jst.

This commit is contained in:
bent.mozilla@gmail.com 2008-03-03 17:20:55 -08:00
parent 57c4c6eade
commit 372aac713d

View File

@ -191,8 +191,8 @@ static void DEBUG_TrackNewWrapper(XPCWrappedNative* wrapper)
static void DEBUG_TrackDeleteWrapper(XPCWrappedNative* wrapper)
{
#ifdef XPC_CHECK_WRAPPERS_AT_SHUTDOWN
if(wrapper->GetRuntime())
wrapper->GetRuntime()->DEBUG_RemoveWrappedNative(wrapper);
if(nsXPConnect::GetRuntime())
nsXPConnect::GetRuntime()->DEBUG_RemoveWrappedNative(wrapper);
else
NS_ERROR("failed to remove wrapper");
#endif