fix for #121868. crashers problems when we fail to generate collation keys.
this happens to us on OS X, it seems. patch by nhotta. r/sr=sspitzer git-svn-id: svn://10.0.0.236/trunk@114950 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -757,11 +757,7 @@ nsresult nsAbView::CreateCollationKey(const PRUnichar *aSource, PRUint8 **aKey,
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
rv = mCollationKeyGenerator->CreateRawSortKey(kCollationCaseInSensitive, sourceString, *aKey, aKeyLen);
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
nsMemory::Free(*aKey);
|
||||
return rv;
|
||||
}
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to generate a raw sort key, see bug #121868");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user