Bug 839236 - Add nsRefPtr to a nsPluginHost::GetInst call. r=bsmedberg

This commit is contained in:
Aaron Klotz 2013-02-11 20:49:33 -05:00
parent 7b99df31f9
commit b1b3cfad7e

View File

@ -533,7 +533,8 @@ PluginModuleParent::EvaluateHangUIState(const bool aReset)
bool
PluginModuleParent::GetPluginName(nsAString& aPluginName)
{
nsPluginHost* host = nsPluginHost::GetInst();
nsRefPtr<nsPluginHost> host =
dont_AddRef<nsPluginHost>(nsPluginHost::GetInst());
if (!host) {
return false;
}