Commit 07e8ab45 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

mshtml: Check for the container's doc being NULL in…

mshtml: Check for the container's doc being NULL in nsTooltipListener_OnShowTooltip and nsTooltipListener_OnHideTooltip. They could be called after NSContainer_Release is called.
parent 83b081f7
......@@ -1496,7 +1496,8 @@ static nsresult NSAPI nsTooltipListener_OnShowTooltip(nsITooltipListener *iface,
{
NSContainer *This = NSTOOLTIP_THIS(iface);
show_tooltip(This->doc, aXCoord, aYCoord, aTipText);
if (This->doc)
show_tooltip(This->doc, aXCoord, aYCoord, aTipText);
return NS_OK;
}
......@@ -1505,7 +1506,8 @@ static nsresult NSAPI nsTooltipListener_OnHideTooltip(nsITooltipListener *iface)
{
NSContainer *This = NSTOOLTIP_THIS(iface);
hide_tooltip(This->doc);
if (This->doc)
hide_tooltip(This->doc);
return NS_OK;
}
......
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