mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
don't delete audio data until stream is terminated
This commit is contained in:
parent
2589183f86
commit
f19defe9db
1 changed files with 2 additions and 2 deletions
|
@ -516,11 +516,11 @@ bool Audio::terminate ()
|
|||
err = Pa_CloseStream(stream);
|
||||
if (err != paNoError) goto error;
|
||||
|
||||
delete data;
|
||||
|
||||
err = Pa_Terminate();
|
||||
if (err != paNoError) goto error;
|
||||
|
||||
delete data;
|
||||
|
||||
logFile.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue