From bafcba7194c36eaf4fa1cb09b000170f8a138055 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 Nov 2018 18:45:45 -0800 Subject: Use a std::string for the device name --- Alc/backends/solaris.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/backends/solaris.cpp') diff --git a/Alc/backends/solaris.cpp b/Alc/backends/solaris.cpp index d306a0c5..86120491 100644 --- a/Alc/backends/solaris.cpp +++ b/Alc/backends/solaris.cpp @@ -188,8 +188,7 @@ static ALCenum ALCsolarisBackend_open(ALCsolarisBackend *self, const ALCchar *na } device = STATIC_CAST(ALCbackend,self)->mDevice; - al_free(device->DeviceName); - device->DeviceName = alstrdup(name); + device->DeviceName = name; return ALC_NO_ERROR; } -- cgit v1.2.3