Commit 08dc691d authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Explicitly hold ref to the plugin host in NPP_New.

Currently this worked by luck because it is leaking; the element holding it never releases it. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent baebde4b
...@@ -301,6 +301,7 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I ...@@ -301,6 +301,7 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I
} }
instance->pdata = container->plugin_host; instance->pdata = container->plugin_host;
IOleClientSite_AddRef(&container->plugin_host->IOleClientSite_iface);
node_release(&container->element.node); node_release(&container->element.node);
return err; return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment