mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
Fixed leak of nsIHTMLDocument interface in GetImageMap()
This commit is contained in:
parent
30a0f2ae51
commit
f2d3dd631e
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user