Bug 1323220 - Don't attempt to delete the child actor twice in URLClassifierParent; r=baku

This commit is contained in:
Ehsan Akhgari 2016-12-14 10:39:15 -05:00
parent aa30f290ac
commit 8d51b7e4f4
2 changed files with 6 additions and 1 deletions

View File

@ -42,11 +42,14 @@ URLClassifierParent::StartClassify(nsIPrincipal* aPrincipal,
nsresult
URLClassifierParent::OnClassifyComplete(nsresult aRv)
{
Unused << Send__delete__(this, aRv);
if (mIPCOpen) {
Unused << Send__delete__(this, aRv);
}
return NS_OK;
}
void
URLClassifierParent::ActorDestroy(ActorDestroyReason aWhy)
{
mIPCOpen = false;
}

View File

@ -29,6 +29,8 @@ class URLClassifierParent : public nsIURIClassifierCallback,
private:
~URLClassifierParent() = default;
bool mIPCOpen = true;
};
} // namespace dom