1 /*
2  *  This file is part of RawTherapee.
3  *
4  *  RawTherapee is free software: you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation, either version 3 of the License, or
7  *  (at your option) any later version.
8  *
9  *  RawTherapee is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
16  *
17  *  2010 Ilya Popov <ilia_popov@rambler.ru>
18  *  2012 Emil Martinec <ejmartin@uchicago.edu>
19  */
20 
21 #include "cplx_wavelet_dec.h"
22 
23 namespace rtengine
24 {
25 
~wavelet_decomposition()26 wavelet_decomposition::~wavelet_decomposition()
27 {
28     for(int i = 0; i <= lvltot; i++) {
29         if(wavelet_decomp[i] != nullptr) {
30             delete wavelet_decomp[i];
31         }
32     }
33 
34     delete[] wavfilt_anal;
35     delete[] wavfilt_synth;
36 
37     if(coeff0) {
38         delete [] coeff0;
39     }
40 }
41 
42 }
43 
44