aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2015-07-13 18:45:31 +0200
committerBastien Bouclet2015-07-13 18:45:31 +0200
commit53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8 (patch)
tree883a8506059dc23319c768d1a79bc4e90e3940ff
parent56294105769cf34f7284e815571a6dbc52044ddf (diff)
downloadscummvm-rg350-53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8.tar.gz
scummvm-rg350-53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8.tar.bz2
scummvm-rg350-53388bf6e8274ce1bb4f53dd8c1bc29dc57447e8.zip
COMMON: Plug a memory leak in the FFT class
-rw-r--r--common/fft.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/fft.cpp b/common/fft.cpp
index 477f7aca62..27a04abb6a 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;