mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 885539 - Crash - Heap-use-after-free in nsTArray_base. r=bz
This commit is contained in:
parent
2f32b96e0b
commit
a022e43e0e
@ -218,7 +218,8 @@ nsNodeUtils::LastRelease(nsINode* aNode)
|
|||||||
static_cast<nsGenericHTMLFormElement*>(aNode)->ClearForm(true);
|
static_cast<nsGenericHTMLFormElement*>(aNode)->ClearForm(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aNode->IsElement() && aNode->AsElement()->IsHTML(nsGkAtoms::img)) {
|
if (aNode->IsElement() && aNode->AsElement()->IsHTML(nsGkAtoms::img) &&
|
||||||
|
aNode->HasFlag(ADDED_TO_FORM)) {
|
||||||
HTMLImageElement* imageElem = static_cast<HTMLImageElement*>(aNode);
|
HTMLImageElement* imageElem = static_cast<HTMLImageElement*>(aNode);
|
||||||
imageElem->ClearForm(true);
|
imageElem->ClearForm(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user