aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/null.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/null.cpp
parentb10e7d08c34bc6d46aaf61ef2a0183e7841b75f3 (diff)
Use a std::string for the device name
Diffstat (limited to 'Alc/backends/null.cpp')
-rw-r--r--Alc/backends/null.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp
index 7c27e22c..255aa01f 100644
--- a/Alc/backends/null.cpp
+++ b/Alc/backends/null.cpp
@@ -140,8 +140,7 @@ ALCenum ALCnullBackend_open(ALCnullBackend *self, const ALCchar *name)
return ALC_INVALID_VALUE;
device = STATIC_CAST(ALCbackend, self)->mDevice;
- al_free(device->DeviceName);
- device->DeviceName = alstrdup(name);
+ device->DeviceName = name;
return ALC_NO_ERROR;
}