Mercurial > otakunoraifu
diff music2/wavfile.cc @ 7:fa8511a21d05
Fixes somes memory leaks
author | thib |
---|---|
date | Tue, 05 Aug 2008 10:06:04 +0000 |
parents | 223b71206888 |
children | 55b577e5f5b5 |
line wrap: on
line diff
--- a/music2/wavfile.cc +++ b/music2/wavfile.cc @@ -352,7 +352,7 @@ WAVFILE_Converter::WAVFILE_Converter(WAV static int conv_wave_rate(short* in_buf, int length, int in_rate, int out_rate, char* tmpbuf); WAVFILE_Converter::~WAVFILE_Converter() { if (cvt) { - if (cvt->buf) delete cvt->buf; + if (cvt->buf) delete[] cvt->buf; delete cvt; cvt = 0; }