Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard to debug and fix. The alternative is the just stick an underscore on the end of malloc, free, etc, which is a comparatively small burden.
This commit is contained in:
@@ -482,7 +482,7 @@ Atomize(JSContext *cx, const jschar *chars, size_t length, uintN flags)
|
||||
if (flags & ATOM_NOCOPY) {
|
||||
key = js_NewString(cx, const_cast<jschar *>(chars), length);
|
||||
if (!key) {
|
||||
cx->free(const_cast<jschar *>(chars));
|
||||
cx->free_(const_cast<jschar *>(chars));
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user