IconUtils: memory leak fix

The intermediate step BBitmap in scale2x wasn't deleted. CID 10692.
This commit is contained in:
Philippe Saint-Pierre 2012-01-02 21:07:55 -05:00
parent 0891b95e63
commit c5e599ac1a

View File

@ -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);