Bug 660453: Proper regexp bytecode deallocation. (r=dmandelin)

This commit is contained in:
Chris Leary 2011-06-09 14:48:03 -07:00
parent a576e69b6d
commit fabe8fa157

View File

@ -128,9 +128,8 @@ class RegExp
#if ENABLE_YARR_JIT
codeBlock.release();
#endif
// YYY
if (byteCode)
delete byteCode;
Foreground::delete_<JSC::Yarr::BytecodePattern>(byteCode);
}
bool compileHelper(JSContext *cx, JSLinearString &pattern);