Fixing shutdown crash on non-Windows platforms caused by hyatt's theme checkin. Should fix one cause of the tinderbox orange. r=mjudge.

git-svn-id: svn://10.0.0.236/trunk@110689 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com 2001-12-18 04:33:28 +00:00
parent 5e4445f3ef
commit f596b1c598

View File

@ -233,7 +233,7 @@ nsBox::nsBox(nsIPresShell* aShell):mMouseThrough(unset),
nsBox::~nsBox()
{
gRefCnt--;
if (gRefCnt == 0)
if (gRefCnt == 0 && gTheme)
nsServiceManager::ReleaseService("@mozilla.org/chrome/chrome-native-theme;1", gTheme);
}