possibly fix crash when switching JACK backend out

This commit is contained in:
tildearrow 2022-01-17 01:49:36 -05:00
parent 6ca3c4ec4d
commit 1632b2864a
2 changed files with 5 additions and 3 deletions

View file

@ -68,8 +68,8 @@ bool TAAudioJACK::quit() {
delete[] outBufs[i];
}
delete[] iInBufs;
delete[] iOutBufs;
if (iInBufs!=NULL) delete[] iInBufs;
if (iOutBufs!=NULL) delete[] iOutBufs;
delete[] inBufs;
delete[] outBufs;
delete[] ai;

View file

@ -23,5 +23,7 @@ class TAAudioJACK: public TAAudio {
TAAudioJACK():
ac(NULL),
ai(NULL),
ao(NULL) {}
ao(NULL),
iInBufs(NULL),
iOutBufs(NULL) {}
};