mshtml: Check for the container's doc being NULL in nsTooltipListener_OnShowTooltip and nsTooltipListener_OnHideTooltip.
They could be called after NSContainer_Release is called.
This commit is contained in:
parent
83b081f73c
commit
07e8ab45c9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue