Bug 627355 - Don't dangle pointers to dead objects. r=dougt a=b-f

--HG--
extra : rebase_source : 1722718e4703ba8a1679e9db9df1b085b3e7535a
This commit is contained in:
Josh Matthews 2011-01-21 14:35:46 -05:00
parent 5a11817095
commit 9fc26722a4

View File

@ -128,6 +128,7 @@ nsContentPermissionRequestProxy::Allow()
if (mParent == nsnull)
return NS_ERROR_FAILURE;
unused << mozilla::dom::ContentPermissionRequestParent::Send__delete__(mParent, true);
mParent = nsnull;
return NS_OK;
}