Release static nsDOMScriptObjectFactory, nsBoxLayout, and nsRepeatService in layout module destructor. r=jst@netscape.com b=43576 r=evaughan@netscape.com b=43582,43588 sr=brendan@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@82420 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2000-11-08 03:22:03 +00:00
parent 8205ca1c3f
commit 0d7a67caac
3 changed files with 21 additions and 3 deletions

View File

@@ -105,7 +105,9 @@ DEFINES += -D_IMPL_NS_HTML
INCLUDES += -I$(srcdir)/../base/src \
-I$(srcdir)/../html/base/src \
-I$(srcdir)/../xul/content/src
-I$(srcdir)/../xul/content/src \
-I$(srcdir)/../xul/base/src \
$(NULL)
ifdef MOZ_MATHML
INCLUDES += -I$(srcdir)/../mathml/content/src

View File

@@ -53,6 +53,7 @@ LCFLAGS = \
LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\dom \
-I$(PUBLIC)\js -I..\..\style\src -I..\html\base\src -I..\base\src \
-I..\xul\content\src \
-I..\xul\base\src \
!ifdef MOZ_MATHML
-I..\mathml\content\src \
!endif

View File

@@ -69,6 +69,13 @@
#include "nsTextTransformer.h"
#include "nsRange.h"
#include "nsGenericElement.h"
#ifdef INCLUDE_XUL
#include "nsBulletinBoardLayout.h"
#include "nsRepeatService.h"
#include "nsSprocketLayout.h"
#include "nsStackLayout.h"
#endif
#include "nsIHTTPProtocolHandler.h"
#include "gbdate.h"
#include "nsContentPolicyUtils.h"
@@ -254,6 +261,16 @@ nsLayoutModule::Shutdown()
if (!mInitialized) {
return;
}
#ifdef INCLUDE_XUL
nsBulletinBoardLayout::Shutdown();
nsRepeatService::Shutdown();
nsSprocketLayout::Shutdown();
nsStackLayout::Shutdown();
#endif
nsRange::Shutdown();
nsGenericElement::Shutdown();
// Release all of our atoms
nsColorNames::ReleaseTable();
@@ -277,8 +294,6 @@ nsLayoutModule::Shutdown()
nsTextTransformer::Shutdown();
nsRange::Shutdown();
NS_IF_RELEASE(gRegistry);
NS_IF_RELEASE(gUAStyleSheet);
}