diff options
Diffstat (limited to 'Alc/backends/qsa.cpp')
-rw-r--r-- | Alc/backends/qsa.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/backends/qsa.cpp b/Alc/backends/qsa.cpp index e171fb92..6db480d9 100644 --- a/Alc/backends/qsa.cpp +++ b/Alc/backends/qsa.cpp @@ -326,8 +326,7 @@ static ALCenum qsa_open_playback(PlaybackWrapper *self, const ALCchar* deviceNam return ALC_INVALID_DEVICE; } - al_free(device->DeviceName); - device->DeviceName = alstrdup(deviceName); + device->DeviceName = deviceName; self->ExtraData = data; return ALC_NO_ERROR; @@ -734,8 +733,7 @@ static ALCenum qsa_open_capture(CaptureWrapper *self, const ALCchar *deviceName) return ALC_INVALID_DEVICE; } - al_free(device->DeviceName); - device->DeviceName = alstrdup(deviceName); + device->DeviceName = deviceName; self->ExtraData = data; switch (device->FmtType) |