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()