From c43fdb7b387a1d4446523fcb3ec16ba03dad43a5 Mon Sep 17 00:00:00 2001 From: James Willcox Date: Mon, 19 Mar 2012 16:09:49 -0400 Subject: [PATCH] Bug 737120 - Allow Flash plugin instances to be cleaned up on Android without an object frame present r=blassey --- dom/plugins/base/nsPluginInstanceOwner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/plugins/base/nsPluginInstanceOwner.cpp b/dom/plugins/base/nsPluginInstanceOwner.cpp index 4600587f6afd..20e6be10906e 100644 --- a/dom/plugins/base/nsPluginInstanceOwner.cpp +++ b/dom/plugins/base/nsPluginInstanceOwner.cpp @@ -1804,7 +1804,7 @@ bool nsPluginInstanceOwner::AddPluginView(const gfxRect& aRect) void nsPluginInstanceOwner::RemovePluginView() { - if (!mInstance || !mObjectFrame) + if (!mInstance) return; void* surface = mInstance->GetJavaSurface();