Null-check to fix crash. b=601543 r+a=jonas

This commit is contained in:
Mats Palmgren 2010-10-11 00:07:00 +02:00
parent f2f33e4d70
commit 3ff314356f

View File

@ -919,7 +919,7 @@ txMozillaXSLTProcessor::SetParameter(const nsAString & aNamespaceURI,
if (NS_FAILED(rv)) {
while (i < count) {
NS_RELEASE(values[i]);
NS_IF_RELEASE(values[i]);
++i;
}
nsMemory::Free(array);