Bug 787246 - rm OffTheBooks/Foreground/UnwantedForeground gunk (r=billm)

This commit is contained in:
Luke Wagner
2012-08-31 15:01:33 -07:00
parent a92d2f1b6a
commit bd2a0bf71a
70 changed files with 444 additions and 639 deletions

View File

@@ -384,7 +384,7 @@ js::Atomize(JSContext *cx, const char *bytes, size_t length, InternBehavior ib,
JSAtom *atom = AtomizeInline(cx, &chars, inflatedLength, ib, ocb);
if (ocb == TakeCharOwnership && chars)
cx->free_((void *)chars);
js_free((void *)chars);
return atom;
}
@@ -506,7 +506,7 @@ js::XDRAtom(XDRState<mode> *xdr, JSAtom **atomp)
JS_ALWAYS_TRUE(xdr->codeChars(chars, nchars));
atom = AtomizeChars(cx, chars, nchars);
if (chars != stackChars)
Foreground::free_(chars);
js_free(chars);
#endif /* !IS_LITTLE_ENDIAN */
if (!atom)