diff options
author | Chris Robinson <[email protected]> | 2023-12-26 22:37:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-26 22:37:12 -0800 |
commit | 205a73876234c0b1363189306530ada73ece56f2 (patch) | |
tree | 185ccb4d06ba136e4fee84324c6f1102c184734d /alc/alc.cpp | |
parent | 1fddc044ac765d00e64628e59edcbcd71f0046b1 (diff) |
Try to start being a bit more pointer-owner conscious
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index e9d3aed7..64b77080 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2735,7 +2735,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin if(oldarray != &DeviceBase::sEmptyContextArray) { std::ignore = dev->waitForMix(); - delete oldarray; + newarray.reset(oldarray); } } statelock.unlock(); |