mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980625 - Fix minor leak in PluginModuleChild::Init found by LSAN. r=josh
This commit is contained in:
parent
168bd00a78
commit
72fc62ad20
@ -169,8 +169,9 @@ PluginModuleChild::Init(const std::string& aPluginFilename,
|
||||
|
||||
#if defined(MOZ_X11) || defined(OS_MACOSX)
|
||||
nsPluginInfo info = nsPluginInfo();
|
||||
if (NS_FAILED(pluginFile.GetPluginInfo(info, &mLibrary)))
|
||||
if (NS_FAILED(pluginFile.GetPluginInfo(info, &mLibrary))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(MOZ_X11)
|
||||
NS_NAMED_LITERAL_CSTRING(flash10Head, "Shockwave Flash 10.");
|
||||
@ -181,6 +182,8 @@ PluginModuleChild::Init(const std::string& aPluginFilename,
|
||||
mozilla::plugins::PluginUtilsOSX::SetProcessName(info.fName);
|
||||
#endif
|
||||
|
||||
pluginFile.FreePluginInfo(info);
|
||||
|
||||
if (!mLibrary)
|
||||
#endif
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user