From 49de60e6e3cbb7ca2f5488403fa11fbacf621629 Mon Sep 17 00:00:00 2001 From: "dprice%netscape.com" Date: Thu, 26 Apr 2001 19:46:02 +0000 Subject: [PATCH] 75641 - leak in nsImageWin a,sr=brendan r=pavlov --- gfx/src/windows/nsImageWin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/src/windows/nsImageWin.cpp b/gfx/src/windows/nsImageWin.cpp index 551fcb6cff1a..2f49c37f6625 100644 --- a/gfx/src/windows/nsImageWin.cpp +++ b/gfx/src/windows/nsImageWin.cpp @@ -915,6 +915,11 @@ nsImageWin::CleanUpDIB() mImageBits = nsnull; } + if (mAlphaBits != nsnull) { + delete [] mAlphaBits; + mAlphaBits = nsnull; + } + // Should be an ISupports, so we can release if (mColorMap != nsnull){ delete [] mColorMap->Index;