diff --git a/mozilla/widget/src/gtk/nsWidget.cpp b/mozilla/widget/src/gtk/nsWidget.cpp index 288852f893c..8d43fdae7e8 100644 --- a/mozilla/widget/src/gtk/nsWidget.cpp +++ b/mozilla/widget/src/gtk/nsWidget.cpp @@ -312,7 +312,7 @@ NS_IMETHODIMP nsWidget::Destroy(void) // 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 rollupWidget = do_QueryReferent(gRollupWidget); - if ( this == rollupWidget.get() ) { + if ( NS_REINTERPRET_CAST(this,nsIWidget*) == rollupWidget.get() ) { if ( gRollupListener ) gRollupListener->Rollup(); gRollupWidget = nsnull;