From 191953b0416536f04f32c15a72c6aba82402ca78 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Mon, 11 Feb 2013 20:49:33 -0500 Subject: [PATCH] Bug 839236 - Add nsRefPtr to a nsPluginHost::GetInst call. r=bsmedberg --- dom/plugins/ipc/PluginModuleParent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/plugins/ipc/PluginModuleParent.cpp b/dom/plugins/ipc/PluginModuleParent.cpp index 2d93f937b5e..94401465f22 100755 --- a/dom/plugins/ipc/PluginModuleParent.cpp +++ b/dom/plugins/ipc/PluginModuleParent.cpp @@ -533,7 +533,8 @@ PluginModuleParent::EvaluateHangUIState(const bool aReset) bool PluginModuleParent::GetPluginName(nsAString& aPluginName) { - nsPluginHost* host = nsPluginHost::GetInst(); + nsRefPtr host = + dont_AddRef(nsPluginHost::GetInst()); if (!host) { return false; }