mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 937157, part 10 - Remove DEBUG_xpc_leaks. r=bholley
This commit is contained in:
parent
49ddb25fb6
commit
97b2314c48
@ -335,10 +335,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
|
||||
goto return_wrapper;
|
||||
|
||||
{ // scoped lock
|
||||
#if DEBUG_xpc_leaks
|
||||
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
|
||||
(void*)wrapper, (void*)jsObj);
|
||||
#endif
|
||||
XPCAutoLock lock(rt->GetMapLock());
|
||||
map->Add(cx, root);
|
||||
}
|
||||
@ -368,10 +364,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
|
||||
release_root = true;
|
||||
|
||||
{ // scoped lock
|
||||
#if DEBUG_xpc_leaks
|
||||
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
|
||||
(void*)root, (void*)rootJSObj);
|
||||
#endif
|
||||
XPCAutoLock lock(rt->GetMapLock());
|
||||
map->Add(cx, root);
|
||||
}
|
||||
@ -393,10 +385,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
|
||||
wrapper = new nsXPCWrappedJS(cx, jsObj, clazz, root, aOuter);
|
||||
if (!wrapper)
|
||||
goto return_wrapper;
|
||||
#if DEBUG_xpc_leaks
|
||||
printf("Created nsXPCWrappedJS %p, JSObject is %p\n",
|
||||
(void*)wrapper, (void*)jsObj);
|
||||
#endif
|
||||
}
|
||||
|
||||
wrapper->mNext = root->mNext;
|
||||
|
@ -494,17 +494,6 @@ FinishCreate(XPCWrappedNativeScope* Scope,
|
||||
AutoJSContext cx;
|
||||
MOZ_ASSERT(inWrapper);
|
||||
|
||||
#if DEBUG_xpc_leaks
|
||||
{
|
||||
char* s = wrapper->ToString();
|
||||
MOZ_ASSERT(wrapper->IsValid(), "eh?");
|
||||
printf("Created wrapped native %s, flat JSObject is %p\n",
|
||||
s, (void*)wrapper->GetFlatJSObjectNoMark());
|
||||
if (s)
|
||||
JS_smprintf_free(s);
|
||||
}
|
||||
#endif
|
||||
|
||||
XPCLock* mapLock = Scope->GetRuntime()->GetMapLock();
|
||||
Native2WrappedNativeMap* map = Scope->GetWrappedNativeMap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user