mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +00:00
Bug 1323220 - Don't attempt to delete the child actor twice in URLClassifierParent; r=baku
This commit is contained in:
parent
aa30f290ac
commit
8d51b7e4f4
@ -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;
|
||||
}
|
||||
|
@ -29,6 +29,8 @@ class URLClassifierParent : public nsIURIClassifierCallback,
|
||||
|
||||
private:
|
||||
~URLClassifierParent() = default;
|
||||
|
||||
bool mIPCOpen = true;
|
||||
};
|
||||
|
||||
} // namespace dom
|
||||
|
Loading…
x
Reference in New Issue
Block a user