mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
C++ port: fix memory leak in LuminanceSource::getMatrix()
git-svn-id: https://zxing.googlecode.com/svn/trunk@1497 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
99ca70d7f3
commit
f7392b3ffe
|
@ -38,6 +38,7 @@ unsigned char* LuminanceSource::getMatrix() {
|
|||
getRow(y, row);
|
||||
memcpy(&matrix[y * width], row, width);
|
||||
}
|
||||
delete [] row;
|
||||
return matrix;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue