diff --git a/content/base/src/nsObjectLoadingContent.cpp b/content/base/src/nsObjectLoadingContent.cpp index d649c557358..b7d09eb7594 100644 --- a/content/base/src/nsObjectLoadingContent.cpp +++ b/content/base/src/nsObjectLoadingContent.cpp @@ -320,7 +320,6 @@ public: nsStopPluginRunnable(nsPluginInstanceOwner* aInstanceOwner, nsObjectLoadingContent* aContent) : mInstanceOwner(aInstanceOwner) - , mContentKungFuDeathGrip(aContent) , mContent(aContent) { NS_ASSERTION(aInstanceOwner, "need an owner"); @@ -336,8 +335,7 @@ public: private: nsCOMPtr mTimer; nsRefPtr mInstanceOwner; - nsCOMPtr mContentKungFuDeathGrip; - nsObjectLoadingContent* mContent; + nsCOMPtr mContent; }; NS_IMPL_ISUPPORTS_INHERITED1(nsStopPluginRunnable, nsRunnable, nsITimerCallback) @@ -376,7 +374,8 @@ nsStopPluginRunnable::Run() mTimer = nsnull; - mContent->DoStopPlugin(mInstanceOwner, false, true); + static_cast(mContent.get())-> + DoStopPlugin(mInstanceOwner, false, true); return NS_OK; }