fix some bustage on HPUX for pinkerton

git-svn-id: svn://10.0.0.236/trunk@95941 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
2001-05-25 23:17:15 +00:00
parent b01e7aac74
commit 7e34fe3d2f

View File

@@ -309,17 +309,15 @@ NS_IMETHODIMP nsWidget::Destroy(void)
// are released
nsBaseWidget::Destroy();
#if SHORTBUS
// just to be safe. If we're going away and for some reason we're still
// the rollup widget, rollup and turn off capture.
nsCOMPtr<nsIWidget> rollupWidget = do_QueryReferent(gRollupWidget);
if ( NS_REINTERPRET_CAST(this,nsIWidget*) == rollupWidget.get() ) {
if ( NS_REINTERPRET_CAST(nsIWidget*,this) == rollupWidget.get() ) {
if ( gRollupListener )
gRollupListener->Rollup();
gRollupWidget = nsnull;
gRollupListener = nsnull;
}
#endif
// destroy our native windows
DestroyNative();