[haiku-commits] haiku: hrev43607 - src/libs/icon

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 3 Jan 2012 03:09:08 +0100 (CET)

hrev43607 adds 1 changeset to branch 'master'
old head: 0891b95e63aad9380672bf22307b072261723322
new head: c5e599ac1a86a421b3ebd02d591a11c0c01cf5fe

----------------------------------------------------------------------------

c5e599a: IconUtils: memory leak fix
  
  The intermediate step BBitmap in scale2x wasn't deleted. CID 10692.

                                [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev43607
Commit:      c5e599ac1a86a421b3ebd02d591a11c0c01cf5fe
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c5e599a
Author:      Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date:        Tue Jan  3 02:07:55 2012 UTC

----------------------------------------------------------------------------

1 files changed, 1 insertions(+), 0 deletions(-)
src/libs/icon/IconUtils.cpp |    1 +

----------------------------------------------------------------------------

diff --git a/src/libs/icon/IconUtils.cpp b/src/libs/icon/IconUtils.cpp
index c67a64e..3acfe5c 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);


Other related posts:

  • » [haiku-commits] haiku: hrev43607 - src/libs/icon - stpere