aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-29 01:00:53 -0800
committerChris Robinson <[email protected]>2018-01-29 01:00:53 -0800
commite7217760f39071c7aec542c8f3fbaad21c71924a (patch)
tree903f585eaa34750b2f7c4a65619c1cf4475bb8a0 /Alc/ALc.c
parenta042dbf30524429b49adb63efda35f53054ae924 (diff)
Don't bother with an explicit stop backend method
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f9f4b29c..53979704 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2434,11 +2434,8 @@ static ALCvoid FreeDevice(ALCdevice *device)
TRACE("%p\n", device);
if(device->Backend)
- {
- V0(device->Backend,close)();
DELETE_OBJ(device->Backend);
- device->Backend = NULL;
- }
+ device->Backend = NULL;
almtx_destroy(&device->BackendLock);
@@ -4146,8 +4143,6 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
// Find a playback device to open
if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR)
{
- DELETE_OBJ(device->Backend);
- device->Backend = NULL;
FreeDevice(device);
alcSetError(NULL, err);
return NULL;
@@ -4318,8 +4313,6 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName,
);
if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR)
{
- DELETE_OBJ(device->Backend);
- device->Backend = NULL;
FreeDevice(device);
alcSetError(NULL, err);
return NULL;