[Scummvm-cvs-logs] scummvm master -> 53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8
bgK
bastien.bouclet at gmail.com
Mon Jul 13 18:47:25 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
53388bf6e8 COMMON: Plug a memory leak in the FFT class
Commit: 53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8
https://github.com/scummvm/scummvm/commit/53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2015-07-13T18:45:31+02:00
Commit Message:
COMMON: Plug a memory leak in the FFT class
Changed paths:
common/fft.cpp
diff --git a/common/fft.cpp b/common/fft.cpp
index 477f7ac..27a04ab 100644
--- a/common/fft.cpp
+++ b/common/fft.cpp
@@ -56,6 +56,10 @@ FFT::FFT(int bits, int inverse) : _bits(bits), _inverse(inverse) {
}
FFT::~FFT() {
+ for (int i = 0; i < ARRAYSIZE(_cosTables); i++) {
+ delete _cosTables[i];
+ }
+
delete[] _revTab;
delete[] _expTab;
delete[] _tmpBuf;
More information about the Scummvm-git-logs
mailing list