Fix for batch mode.
[blender.git] / intern / audaspace / intern / AUD_C-API.cpp
index 830e1147cbb39d6491052cd00a109635595ebc9d..92a499e84b82b9dc3ecf9be73f6a53be5e377289 100644 (file)
@@ -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()