зеркало из https://github.com/mozilla/gecko-dev.git
Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap
JSval is the only different between the two, and we handle that above.
This commit is contained in:
Родитель
e50c94594b
Коммит
bd60d3bec1
|
@ -2855,7 +2855,8 @@ CallMethodHelper::CleanupParam(nsXPTCMiniVariant& param, nsXPTType& type)
|
|||
delete (nsCString*) param.val.p;
|
||||
break;
|
||||
default:
|
||||
NS_ABORT_IF_FALSE(type.IsPointer(), "Cleanup requested on unexpected type.");
|
||||
NS_ABORT_IF_FALSE(!type.IsArithmetic(),
|
||||
"Cleanup requested on unexpected type.");
|
||||
nsMemory::Free(param.val.p);
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче