diff options
author | Joerg Mueller <nexyon@gmail.com> | 2009-08-11 17:07:24 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2009-08-11 17:07:24 +0400 |
commit | 58ba4ce011a42c8709a75e5d0d2c6aa3f2c439ce (patch) | |
tree | c9e13d50d8f67cb1c9b26625d92d9936f6f38391 | |
parent | 9ea24f887c6a7a2308a91be0cd3d7866e1781625 (diff) |
Fix for batch mode.
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp index 830e1147cbb..92a499e84b8 100644 --- a/intern/audaspace/intern/AUD_C-API.cpp +++ b/intern/audaspace/intern/AUD_C-API.cpp @@ -132,10 +132,12 @@ int* AUD_enumDevices() void AUD_exit() { - assert(AUD_device); - delete AUD_device; - AUD_device = NULL; - AUD_3ddevice = NULL; + if(AUD_device) + { + delete AUD_device; + AUD_device = NULL; + AUD_3ddevice = NULL; + } } void AUD_lock() |