Fix for batch mode.
authorJoerg Mueller <nexyon@gmail.com>
Tue, 11 Aug 2009 13:07:24 +0000 (13:07 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Tue, 11 Aug 2009 13:07:24 +0000 (13:07 +0000)
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()