mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 660453: Proper regexp bytecode deallocation. (r=dmandelin)
This commit is contained in:
parent
a576e69b6d
commit
fabe8fa157
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user