mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 630533: fix minor OOM crash involving shapes, r=brendan
This commit is contained in:
parent
3de322ba70
commit
4db10dcdc0
@ -570,12 +570,12 @@ JSObject::getChildProperty(JSContext *cx, Shape *parent, Shape &child)
|
||||
return NULL;
|
||||
} else {
|
||||
shape = JS_PROPERTY_TREE(cx).getChild(cx, parent, child);
|
||||
if (shape) {
|
||||
if (!shape)
|
||||
return NULL;
|
||||
JS_ASSERT(shape->parent == parent);
|
||||
JS_ASSERT_IF(parent != lastProp, parent == lastProp->parent);
|
||||
setLastProperty(shape);
|
||||
}
|
||||
}
|
||||
|
||||
updateFlags(shape);
|
||||
updateShape(cx);
|
||||
|
Loading…
Reference in New Issue
Block a user