[SCM] Multi-format 1D/2D barcode image processing library branch, upstream, updated. 24d4480bc48cf9eabf7b2bd2f528248b0e458809

flyashi flyashi at 59b500cc-1b3d-0410-9834-0bbf25fbcc57
Wed Aug 4 01:32:38 UTC 2010


The following commit has been merged in the upstream branch:
commit 82e3178fa2414c9e4ea014126a55345a6fac1bcd
Author: flyashi <flyashi at 59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Date:   Thu Jul 29 19:01:45 2010 +0000

    C++ port: fix memory leak in LuminanceSource::getMatrix()
    
    git-svn-id: http://zxing.googlecode.com/svn/trunk@1497 59b500cc-1b3d-0410-9834-0bbf25fbcc57

diff --git a/cpp/core/src/zxing/LuminanceSource.cpp b/cpp/core/src/zxing/LuminanceSource.cpp
index 9501d6e..23b1e8c 100644
--- a/cpp/core/src/zxing/LuminanceSource.cpp
+++ b/cpp/core/src/zxing/LuminanceSource.cpp
@@ -38,6 +38,7 @@ unsigned char* LuminanceSource::getMatrix() {
     getRow(y, row);
     memcpy(&matrix[y * width], row, width);
   }
+  delete [] row;
   return matrix;
 }
 

-- 
Multi-format 1D/2D barcode image processing library



More information about the Pkg-google-commits mailing list