summaryrefslogtreecommitdiff
path: root/platform/osx/audio_driver_osx.cpp
diff options
context:
space:
mode:
authorAriel Manzur <punto@godotengine.org>2016-01-29 07:18:27 -0300
committerAriel Manzur <punto@godotengine.org>2016-01-29 07:18:53 -0300
commit593b01b709517c36e65507c20ccf9c80907c67a2 (patch)
tree97ea3e9c4a0ed8a3e90705ceb7faf26660628bd7 /platform/osx/audio_driver_osx.cpp
parent4e199a4a07c00f541bd9ae7235bcf02e703fa2b7 (diff)
audio crash
Diffstat (limited to 'platform/osx/audio_driver_osx.cpp')
-rw-r--r--platform/osx/audio_driver_osx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/osx/audio_driver_osx.cpp b/platform/osx/audio_driver_osx.cpp
index a74303e6c2..d9d91b22fb 100644
--- a/platform/osx/audio_driver_osx.cpp
+++ b/platform/osx/audio_driver_osx.cpp
@@ -172,6 +172,9 @@ void AudioDriverOSX::unlock() {
void AudioDriverOSX::finish() {
+ if (active)
+ AudioOutputUnitStop(audio_unit);
+
memdelete_arr(samples_in);
};