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

This commit is contained in:
dbaron%fas.harvard.edu 2000-11-08 03:22:03 +00:00
Родитель f368678625
Коммит 08583edc80
3 изменённых файлов: 21 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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);
}