mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 730415 - Fix JS engine OOM condition in makeDenseArraysSlow. r=bhackett
This commit is contained in:
parent
74f5918c05
commit
af33552a20
@ -1389,7 +1389,8 @@ JSObject::makeDenseArraySlow(JSContext *cx)
|
||||
*/
|
||||
if (!AddLengthProperty(cx, this)) {
|
||||
this->shape_ = oldShape;
|
||||
cx->free_(getElementsHeader());
|
||||
if (elements != emptyObjectElements)
|
||||
cx->free_(getElementsHeader());
|
||||
elements = elems;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user