diff options
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r-- | Alc/alcReverb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index 846d3802..42c823ce 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -28,6 +28,7 @@ #include "alMain.h" #include "alAuxEffectSlot.h" #include "alEffect.h" +#include "alError.h" #include "alu.h" typedef struct DelayLine @@ -665,7 +666,10 @@ ALeffectState *VerbCreate(ALCcontext *Context) State = malloc(sizeof(ALverbState)); if(!State) + { + alSetError(AL_OUT_OF_MEMORY); return NULL; + } State->state.Destroy = VerbDestroy; State->state.Update = VerbUpdate; @@ -710,6 +714,7 @@ ALeffectState *VerbCreate(ALCcontext *Context) if(!State->SampleBuffer) { free(State); + alSetError(AL_OUT_OF_MEMORY); return NULL; } for(index = 0; index < totalLength;index++) |