aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/qsa.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 18:45:45 -0800
committerChris Robinson <[email protected]>2018-11-18 18:45:45 -0800
commitbafcba7194c36eaf4fa1cb09b000170f8a138055 (patch)
tree5d81112305a2f920017bcf95a4a8221734eb2122 /Alc/backends/qsa.cpp
parentb10e7d08c34bc6d46aaf61ef2a0183e7841b75f3 (diff)
Use a std::string for the device name
Diffstat (limited to 'Alc/backends/qsa.cpp')
-rw-r--r--Alc/backends/qsa.cpp6
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)