Bug 1081362 - Change nsStyleBasicShape pointer to an nsRefPtr, to avoid leak in unexpected case. r=dholbert

This commit is contained in:
Wilmer Paulino 2015-07-09 10:56:31 -04:00
parent 7063fc503c
commit 7b5ec68134

View File

@ -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;