Fix bug 269832: crash when scrolling some plugins. Add null-check on mWidget in XP_MACOSX code. r/sr=bz

This commit is contained in:
smfr%smfr.org 2005-02-03 05:31:42 +00:00
parent ea914b4555
commit 5cb748c4f4

View File

@ -3454,6 +3454,7 @@ nsresult nsPluginInstanceOwner::ScrollPositionDidChange(nsIScrollableView* aScro
#if defined(XP_MACOSX)
// FIXME - Only invalidate the newly revealed amount.
if (mWidget)
mWidget->Invalidate(PR_TRUE);
#endif
}