mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1081362 - Change nsStyleBasicShape pointer to an nsRefPtr, to avoid leak in unexpected case. r=dholbert
This commit is contained in:
parent
7063fc503c
commit
7b5ec68134
@ -8897,7 +8897,7 @@ nsRuleNode::SetStyleClipPathToCSSValue(nsStyleClipPath* aStyleClipPath,
|
||||
const nsCSSValueList* cur = aValue->GetListValue();
|
||||
|
||||
uint8_t sizingBox = NS_STYLE_CLIP_SHAPE_SIZING_NOBOX;
|
||||
nsStyleBasicShape* basicShape = nullptr;
|
||||
nsRefPtr<nsStyleBasicShape> basicShape;
|
||||
for (unsigned i = 0; i < 2; ++i) {
|
||||
if (!cur) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user