Fixed leak of nsIHTMLDocument interface in GetImageMap()

This commit is contained in:
troy%netscape.com 1999-01-30 01:04:35 +00:00
Родитель 30a0f2ae51
Коммит f2d3dd631e
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -46,6 +46,7 @@
#include "nsIDeviceContext.h"
#include "nsINameSpaceManager.h"
#include "nsTextFragment.h"
#include "nsIDOMHTMLMapElement.h"
#ifndef _WIN32
#define BROKEN_IMAGE_URL "resource:/res/html/broken-image.gif"
@ -722,6 +723,7 @@ nsImageFrame::GetImageMap()
if (nsnull != mImageMap) {
mImageMap->Init(map);
}
NS_IF_RELEASE(map);
}
}
}

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

@ -46,6 +46,7 @@
#include "nsIDeviceContext.h"
#include "nsINameSpaceManager.h"
#include "nsTextFragment.h"
#include "nsIDOMHTMLMapElement.h"
#ifndef _WIN32
#define BROKEN_IMAGE_URL "resource:/res/html/broken-image.gif"
@ -722,6 +723,7 @@ nsImageFrame::GetImageMap()
if (nsnull != mImageMap) {
mImageMap->Init(map);
}
NS_IF_RELEASE(map);
}
}
}