mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839236 - Add nsRefPtr to a nsPluginHost::GetInst call. r=bsmedberg
This commit is contained in:
parent
7b99df31f9
commit
b1b3cfad7e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user