Fix for bug #17878 - nsLWBreakerFImp::GetBreaker() oddities; r= naoki
git-svn-id: svn://10.0.0.236/trunk@57041 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
358d3ec109
commit
1f56518222
@ -139,7 +139,10 @@ nsresult nsLWBreakerFImp::GetBreaker(nsString& aParam, nsILineBreaker** oResult)
|
||||
{
|
||||
*oResult = new nsJISx4501LineBreaker (nsnull, 0, nsnull, 0);
|
||||
}
|
||||
return (*oResult)->AddRef();
|
||||
|
||||
if (*oResult == NULL) return NS_ERROR_OUT_OF_MEMORY;
|
||||
(*oResult)->AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsLWBreakerFImp::GetBreaker(nsString& aParam, nsIWordBreaker** oResult)
|
||||
@ -148,6 +151,8 @@ nsresult nsLWBreakerFImp::GetBreaker(nsString& aParam, nsIWordBreaker** oResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
*oResult = new nsSampleWordBreaker ();
|
||||
return (*oResult)->AddRef();
|
||||
if (*oResult == NULL) return NS_ERROR_OUT_OF_MEMORY;
|
||||
(*oResult)->AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user