Bug 787291 - add pod_malloc<T> et al (r=billm)
This commit is contained in:
@@ -498,7 +498,7 @@ js::XDRAtom(XDRState<mode> *xdr, JSAtom **atomp)
|
||||
* most allocations here will be bigger than tempLifoAlloc's default
|
||||
* chunk size.
|
||||
*/
|
||||
chars = static_cast<jschar *>(cx->runtime->malloc_(nchars * sizeof(jschar)));
|
||||
chars = cx->runtime->pod_malloc<jschar>(nchars);
|
||||
if (!chars)
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user