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:
@@ -2406,7 +2406,7 @@ date_toSource(JSContext *cx, uintN argc, Value *vp)
|
||||
}
|
||||
|
||||
JSString *str = JS_NewStringCopyZ(cx, bytes);
|
||||
cx->free(bytes);
|
||||
cx->free_(bytes);
|
||||
if (!str)
|
||||
return false;
|
||||
vp->setString(str);
|
||||
|
||||
Reference in New Issue
Block a user