comparison music2/wavfile.cc @ 8:55b577e5f5b5

Some memory leaks fixed
author thib
date Tue, 05 Aug 2008 12:56:51 +0000
parents fa8511a21d05
children 3a6aaeab7b4e
comparison
equal deleted inserted replaced
7:fa8511a21d05 8:55b577e5f5b5
354 if (cvt) { 354 if (cvt) {
355 if (cvt->buf) delete[] cvt->buf; 355 if (cvt->buf) delete[] cvt->buf;
356 delete cvt; 356 delete cvt;
357 cvt = 0; 357 cvt = 0;
358 } 358 }
359 delete[] tmpbuf;
359 if (original) delete original; 360 if (original) delete original;
360 original = 0; 361 original = 0;
361 } 362 }
362 int WAVFILE_Converter::Read(char* buf, int blksize, int blklen) { 363 int WAVFILE_Converter::Read(char* buf, int blksize, int blklen) {
363 if (original == 0 || cvt == 0) return -1; 364 if (original == 0 || cvt == 0) return -1;