зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d9e85a072b
Коммит
b1c1ef734f
|
@ -59,8 +59,11 @@ NS_CYCLE_COLLECTION_CLASSNAME(nsXPCWrappedJS)::Traverse
|
|||
nsrefcnt refcnt = tmp->mRefCnt.get();
|
||||
#ifdef DEBUG_CC
|
||||
char name[72];
|
||||
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS (%s)",
|
||||
tmp->GetClass()->GetInterfaceName());
|
||||
if (tmp->GetClass())
|
||||
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS (%s)",
|
||||
tmp->GetClass()->GetInterfaceName());
|
||||
else
|
||||
JS_snprintf(name, sizeof(name), "nsXPCWrappedJS");
|
||||
cb.DescribeNode(RefCounted, refcnt, sizeof(nsXPCWrappedJS), name);
|
||||
#else
|
||||
cb.DescribeNode(RefCounted, refcnt);
|
||||
|
|
Загрузка…
Ссылка в новой задаче