Commit 28461117 authored by James Beddek's avatar James Beddek Committed by Alexandre Julliard

mshtml: Check for non-NULL plugin host before trying to hold ref.

parent 3ff81e3a
...@@ -301,7 +301,8 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I ...@@ -301,7 +301,8 @@ 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); if(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