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:
flyashi 2010-07-29 19:01:45 +00:00
parent 99ca70d7f3
commit f7392b3ffe

View file

@ -38,6 +38,7 @@ unsigned char* LuminanceSource::getMatrix() {
getRow(y, row);
memcpy(&matrix[y * width], row, width);
}
delete [] row;
return matrix;
}