aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index d2c28a05..37e3290f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1453,6 +1453,11 @@ void UnlockContext(ALCcontext *context)
}
+ALint64 ALCbackend_getLatency(ALCbackend* UNUSED(self))
+{
+ return 0;
+}
+
void ALCbackend_lock(ALCbackend *self)
{
ALCdevice_LockDefault(self->mDevice);
@@ -1953,6 +1958,8 @@ static ALCvoid FreeDevice(ALCdevice *device)
VCALL0(device->Backend,close,());
else
ALCdevice_CloseCapture(device);
+ DELETE_OBJ(device->Backend);
+ device->Backend = NULL;
if(device->DefaultSlot)
{