projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
C++ port: some memory leak cleanups
[zxing.git]
/
cpp
/
core
/
src
/
zxing
/
LuminanceSource.cpp
diff --git
a/cpp/core/src/zxing/LuminanceSource.cpp
b/cpp/core/src/zxing/LuminanceSource.cpp
index
9501d6e
..
23b1e8c
100644
(file)
--- 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;
}