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 4c75a68a13
commit e6d9127892

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;
}