Mercurial > hg > svapp
comparison audio/AudioGenerator.cpp @ 593:821aba42c1bb
Fix some one-off memory leaks (including distracting ones in tests)
| author | Chris Cannam |
|---|---|
| date | Mon, 06 Mar 2017 17:37:23 +0000 |
| parents | 4480b031fe38 |
| children | b23bebfdfaba |
comparison
equal
deleted
inserted
replaced
| 592:1918bf5c9a9e | 593:821aba42c1bb |
|---|---|
| 65 AudioGenerator::~AudioGenerator() | 65 AudioGenerator::~AudioGenerator() |
| 66 { | 66 { |
| 67 #ifdef DEBUG_AUDIO_GENERATOR | 67 #ifdef DEBUG_AUDIO_GENERATOR |
| 68 SVDEBUG << "AudioGenerator::~AudioGenerator" << endl; | 68 SVDEBUG << "AudioGenerator::~AudioGenerator" << endl; |
| 69 #endif | 69 #endif |
| 70 | |
| 71 for (int i = 0; i < m_channelBufCount; ++i) { | |
| 72 delete[] m_channelBuffer[i]; | |
| 73 } | |
| 74 delete[] m_channelBuffer; | |
| 70 } | 75 } |
| 71 | 76 |
| 72 void | 77 void |
| 73 AudioGenerator::initialiseSampleDir() | 78 AudioGenerator::initialiseSampleDir() |
| 74 { | 79 { |
