mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Deal with nsXPCWrappedJS::GetClass being null, which it can be after Unlink. a=Not part of the default build (DEBUG_CC only)
This commit is contained in:
parent
fe6d7b2a9c
commit
d6f406d8a8
@ -59,8 +59,11 @@ NS_CYCLE_COLLECTION_CLASSNAME(nsXPCWrappedJS)::Traverse
|
|||||||
nsrefcnt refcnt = tmp->mRefCnt.get();
|
nsrefcnt refcnt = tmp->mRefCnt.get();
|
||||||
#ifdef DEBUG_CC
|
#ifdef DEBUG_CC
|
||||||
char name[72];
|
char name[72];
|
||||||
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS (%s)",
|
if (tmp->GetClass())
|
||||||
tmp->GetClass()->GetInterfaceName());
|
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS (%s)",
|
||||||
|
tmp->GetClass()->GetInterfaceName());
|
||||||
|
else
|
||||||
|
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS");
|
||||||
cb.DescribeNode(RefCounted, refcnt, sizeof(nsXPCWrappedJS), name);
|
cb.DescribeNode(RefCounted, refcnt, sizeof(nsXPCWrappedJS), name);
|
||||||
#else
|
#else
|
||||||
cb.DescribeNode(RefCounted, refcnt);
|
cb.DescribeNode(RefCounted, refcnt);
|
||||||
|
Loading…
Reference in New Issue
Block a user