зеркало из https://github.com/mozilla/gecko-dev.git
Fix leak of namespace manager. r=waterson@netscape.com
This commit is contained in:
Родитель
475f83d8ee
Коммит
15a4c992b7
|
@ -496,6 +496,11 @@ nsXULDocument::~nsXULDocument()
|
|||
NS_IF_RELEASE(gHTMLElementFactory);
|
||||
NS_IF_RELEASE(gXMLElementFactory);
|
||||
|
||||
if (gNameSpaceManager) {
|
||||
nsServiceManager::ReleaseService(kNameSpaceManagerCID, gNameSpaceManager);
|
||||
gNameSpaceManager = nsnull;
|
||||
}
|
||||
|
||||
if (gXULUtils) {
|
||||
nsServiceManager::ReleaseService(kXULContentUtilsCID, gXULUtils);
|
||||
gXULUtils = nsnull;
|
||||
|
|
|
@ -496,6 +496,11 @@ nsXULDocument::~nsXULDocument()
|
|||
NS_IF_RELEASE(gHTMLElementFactory);
|
||||
NS_IF_RELEASE(gXMLElementFactory);
|
||||
|
||||
if (gNameSpaceManager) {
|
||||
nsServiceManager::ReleaseService(kNameSpaceManagerCID, gNameSpaceManager);
|
||||
gNameSpaceManager = nsnull;
|
||||
}
|
||||
|
||||
if (gXULUtils) {
|
||||
nsServiceManager::ReleaseService(kXULContentUtilsCID, gXULUtils);
|
||||
gXULUtils = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче