Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2009-08-11 17:07:24 +0400
committerJoerg Mueller <nexyon@gmail.com>2009-08-11 17:07:24 +0400
commit58ba4ce011a42c8709a75e5d0d2c6aa3f2c439ce (patch)
treec9e13d50d8f67cb1c9b26625d92d9936f6f38391 /intern
parent9ea24f887c6a7a2308a91be0cd3d7866e1781625 (diff)
Fix for batch mode.
Diffstat (limited to 'intern')
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp10
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()