Bug 814953 - Check for possible widget tear down before calling UpdateWindow in widget's Show. r=bbondy

This commit is contained in:
Jim Mathies 2012-12-17 06:53:28 -06:00
parent 5b57fb177d
commit b1c0111f55

View File

@ -1195,7 +1195,7 @@ NS_METHOD nsWindow::Show(bool bState)
#ifdef MOZ_XUL
if (!wasVisible && bState) {
Invalidate();
if (syncInvalidate) {
if (syncInvalidate && !mInDtor && !mOnDestroyCalled) {
::UpdateWindow(mWnd);
}
}