Bug 1169867 - nsXMLHttpRequest should use and free mProxy correctly, r=ehsan

This commit is contained in:
Andrea Marchesini 2015-06-04 15:04:09 +01:00
parent bc200b39a2
commit 014fbd660d

View File

@ -1944,8 +1944,8 @@ XMLHttpRequest::Open(const nsACString& aMethod, const nsAString& aUrl,
mProxy->mOpening = true;
if (!runnable->Dispatch(mWorkerPrivate->GetJSContext())) {
ReleaseProxy();
mProxy->mOpening = false;
ReleaseProxy();
aRv.Throw(NS_ERROR_FAILURE);
return;
}