kopia lustrzana https://gitlab.com/eliggett/wfview
Make sure audio is deleted in destructor
rodzic
a04044e75b
commit
006b2904cb
|
@ -24,12 +24,17 @@ audioHandler::~audioHandler()
|
|||
if (resampler != Q_NULLPTR) {
|
||||
speex_resampler_destroy(resampler);
|
||||
}
|
||||
|
||||
if (audio->isStreamRunning())
|
||||
{
|
||||
audio->stopStream();
|
||||
audio->closeStream();
|
||||
}
|
||||
delete audio;
|
||||
|
||||
if (audio != Q_NULLPTR) {
|
||||
delete audio;
|
||||
}
|
||||
|
||||
if (ringBuf != Q_NULLPTR)
|
||||
delete ringBuf;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue