diff options
Diffstat (limited to 'Alc/backends/loopback.cpp')
-rw-r--r-- | Alc/backends/loopback.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp index 843cb18e..5a6e14b5 100644 --- a/Alc/backends/loopback.cpp +++ b/Alc/backends/loopback.cpp @@ -64,8 +64,7 @@ ALCenum ALCloopback_open(ALCloopback *self, const ALCchar *name) { ALCdevice *device = STATIC_CAST(ALCbackend, self)->mDevice; - al_free(device->DeviceName); - device->DeviceName = alstrdup(name); + device->DeviceName = name; return ALC_NO_ERROR; } |