Bug 1304457 - Ensure that RemoteContentController doesn't try to send any messages after it has sent the Destroy message. r?dvander
MozReview-Commit-ID: 2tEb6nU049R
--- a/gfx/layers/ipc/RemoteContentController.cpp
+++ b/gfx/layers/ipc/RemoteContentController.cpp
@@ -208,14 +208,15 @@ RemoteContentController::ActorDestroy(Ac
// by a RefPtr, but it is no longer valid to send messages.
mCanSend = false;
}
void
RemoteContentController::Destroy()
{
if (mCanSend) {
+ mCanSend = false;
Unused << SendDestroy();
}
}
} // namespace layers
} // namespace mozilla