Bug 383807 - Explain why we are not checking the result of new in nsExternalProtocolHander.cpp. Patch by Ryan Jones <sciguyryan@gmail.com>. r=cbiesinger, sr=dmose
git-svn-id: svn://10.0.0.236/trunk@227885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -325,6 +325,8 @@ NS_IMETHODIMP nsExtProtocolChannel::AsyncOpen(nsIStreamListener *listener, nsISu
|
||||
nsCOMPtr<nsIRunnable> event = new nsWebProtocolRedirect(mUrl, uriTemplate,
|
||||
listener, ctxt,
|
||||
this);
|
||||
// We don't check if |event| was successfully created because
|
||||
// |NS_DispatchToCurrentThread| will do that for us.
|
||||
rv = NS_DispatchToCurrentThread(event);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user