зеркало из https://github.com/mozilla/gecko-dev.git
bug #55703 (sr=buster). Stop leaking images in nsBulletFrame...
This commit is contained in:
Родитель
2b2b2c8e64
Коммит
5b6a19400c
|
@ -126,7 +126,7 @@ nsBulletFrame::Paint(nsIPresContext* aCX,
|
|||
PRUint8 listStyleType = myList->mListStyleType;
|
||||
|
||||
if (myList->mListStyleImage.Length() > 0) {
|
||||
nsIImage* image = mImageLoader.GetImage();
|
||||
nsCOMPtr<nsIImage> image = dont_AddRef(mImageLoader.GetImage());
|
||||
if (image) {
|
||||
if (!mImageLoader.GetLoadImageFailed()) {
|
||||
nsRect innerArea(mPadding.left, mPadding.top,
|
||||
|
@ -135,7 +135,6 @@ nsBulletFrame::Paint(nsIPresContext* aCX,
|
|||
aRenderingContext.DrawImage(image, innerArea);
|
||||
return NS_OK;
|
||||
}
|
||||
NS_RELEASE(image);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ nsBulletFrame::Paint(nsIPresContext* aCX,
|
|||
PRUint8 listStyleType = myList->mListStyleType;
|
||||
|
||||
if (myList->mListStyleImage.Length() > 0) {
|
||||
nsIImage* image = mImageLoader.GetImage();
|
||||
nsCOMPtr<nsIImage> image = dont_AddRef(mImageLoader.GetImage());
|
||||
if (image) {
|
||||
if (!mImageLoader.GetLoadImageFailed()) {
|
||||
nsRect innerArea(mPadding.left, mPadding.top,
|
||||
|
@ -135,7 +135,6 @@ nsBulletFrame::Paint(nsIPresContext* aCX,
|
|||
aRenderingContext.DrawImage(image, innerArea);
|
||||
return NS_OK;
|
||||
}
|
||||
NS_RELEASE(image);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче