зеркало из https://github.com/mozilla/pjs.git
Fix leak of namespace manager. r=waterson@netscape.com
This commit is contained in:
Родитель
2512f5ddcc
Коммит
1b3f6ef567
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче