[client] audio/pw: fix memory leak and gracefully shutdown
This commit is contained in:
1 parent
54e7542414
commit
5629655f74
2 files changed
+4
No files matched your search
@@ -72,6 +72,9 @@ void audio_free(void)
|
||||
if (!audio.audioDev)
|
||||
return;
|
||||
|
||||
audio_playbackStop();
|
||||
audio_recordStop();
|
||||
|
||||
audio.audioDev->free();
|
||||
audio.audioDev = NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user