From 8abb3c017cefb2be1d8690b2ced5ac70e82e4d62 Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Mon, 16 Sep 2002 22:35:39 +0000 Subject: [PATCH] Fix Mac bustage. --- widget/src/mac/nsAppShell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/mac/nsAppShell.cpp b/widget/src/mac/nsAppShell.cpp index b6c3618775fe..50beaeec2d3e 100644 --- a/widget/src/mac/nsAppShell.cpp +++ b/widget/src/mac/nsAppShell.cpp @@ -124,7 +124,7 @@ NS_IMETHODIMP nsAppShell::Run(void) if (mExitCalled) // hack: see below { - mRefCnt --; + --mRefCnt; if (mRefCnt == 0) delete this; } @@ -143,7 +143,7 @@ NS_IMETHODIMP nsAppShell::Exit(void) { Spindown(); mExitCalled = PR_TRUE; - mRefCnt ++; // hack: since the applications are likely to delete us + ++mRefCnt; // hack: since the applications are likely to delete us // after calling this method (see nsViewerApp::Exit()), // we temporarily bump the refCnt to let the message pump // exit properly. The object will delete itself afterwards.