diff options
Diffstat (limited to 'Alc/backends/wave.cpp')
-rw-r--r-- | Alc/backends/wave.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp index af1fd768..3f8d8c97 100644 --- a/Alc/backends/wave.cpp +++ b/Alc/backends/wave.cpp @@ -240,8 +240,7 @@ ALCenum ALCwaveBackend_open(ALCwaveBackend *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; } |