From c5e599ac1a86a421b3ebd02d591a11c0c01cf5fe Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Mon, 2 Jan 2012 21:07:55 -0500 Subject: [PATCH] IconUtils: memory leak fix The intermediate step BBitmap in scale2x wasn't deleted. CID 10692. --- src/libs/icon/IconUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/icon/IconUtils.cpp b/src/libs/icon/IconUtils.cpp index c67a64e7b0..3acfe5c35e 100644 --- a/src/libs/icon/IconUtils.cpp +++ b/src/libs/icon/IconUtils.cpp @@ -535,6 +535,7 @@ BIconUtils::ConvertFromCMAP8(const uint8* src, uint32 width, uint32 height, uint8* convertedBits = (uint8*)converted->Bits(); int32 convertedBPR = converted->BytesPerRow(); scale2x(convertedBits, dst, width, height, convertedBPR, dstBPR); + delete converted; } else { // bilinear scaling scale_bilinear(dst, width, height, dstWidth, dstHeight, dstBPR);