diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alc.cpp | 2 | ||||
-rw-r--r-- | Alc/alcontext.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 3247e14c..10a1511e 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2277,7 +2277,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(state->deviceUpdate(device) == AL_FALSE) update_failed = AL_TRUE; else - UpdateEffectSlotProps(slot, context); + UpdateEffectSlotProps(slot.get(), context); } almtx_unlock(&context->EffectSlotLock); diff --git a/Alc/alcontext.h b/Alc/alcontext.h index f174f324..424f1447 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -47,7 +47,7 @@ struct SourceSubList { /* Effect slots are rather large, and apps aren't likely to have more than one * or two (let alone 64), so hold them individually. */ -using ALeffectslotPtr = struct ALeffectslot*; +using ALeffectslotPtr = std::unique_ptr<ALeffectslot>; struct ALCcontext_struct { RefCount ref{1u}; |