Bug 529934 followup: Use "IsStringUnit()" instead of explicitly comparing unit, in nsStyleAnimation::FreeValue. r=dbaron

This commit is contained in:
Daniel Holbert 2009-12-10 16:38:17 -08:00
parent ed30b4065d
commit 7fb24e97d7

View File

@ -1544,7 +1544,7 @@ nsStyleAnimation::Value::FreeValue()
delete mValue.mCSSValueList;
} else if (IsCSSValuePairUnit(mUnit)) {
delete mValue.mCSSValuePair;
} else if (mUnit == eUnit_UnparsedString) {
} else if (IsStringUnit(mUnit)) {
NS_ABORT_IF_FALSE(mValue.mString, "expecting non-null string");
mValue.mString->Release();
}