зеркало из https://github.com/mozilla/pjs.git
Bug 619785 - nsComputedDOMStyle::DoGetMozBackgroundSize leaks valY when it has problems with valX, r+a=bz
This commit is contained in:
Родитель
e17cb307e0
Коммит
542782a17a
|
@ -1815,12 +1815,13 @@ nsComputedDOMStyle::DoGetMozBackgroundSize(nsIDOMCSSValue** aValue)
|
|||
}
|
||||
|
||||
nsROCSSPrimitiveValue* valX = GetROCSSPrimitiveValue();
|
||||
nsROCSSPrimitiveValue* valY = GetROCSSPrimitiveValue();
|
||||
if (!valX || !itemList->AppendCSSValue(valX)) {
|
||||
delete valueList;
|
||||
delete valX;
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
nsROCSSPrimitiveValue* valY = GetROCSSPrimitiveValue();
|
||||
if (!valY || !itemList->AppendCSSValue(valY)) {
|
||||
delete valueList;
|
||||
delete valY;
|
||||
|
@ -2867,6 +2868,7 @@ nsComputedDOMStyle::DoGetCursor(nsIDOMCSSValue** aValue)
|
|||
delete valueList;
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
nsROCSSPrimitiveValue *valY = GetROCSSPrimitiveValue();
|
||||
if (!valY || !itemList->AppendCSSValue(valY)) {
|
||||
delete valY;
|
||||
|
|
Загрузка…
Ссылка в новой задаче