diff options
author | Chris Robinson <[email protected]> | 2019-08-13 20:33:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-13 20:33:44 -0700 |
commit | 0806a003e2b359b173b84548d8b78a25e8b51ca3 (patch) | |
tree | 60fd0c38e32e8a051a643408ff3e6907f5ae8dda /alc | |
parent | 91ff01d1ad3c2995266902f41454c04e2b6e5d47 (diff) |
Use new/delete for listener properties
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 6a39ab46..ca7dbb0f 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2386,14 +2386,14 @@ ALCcontext::~ALCcontext() if(lprops) { TRACE("Freed unapplied listener update %p\n", lprops); - al_free(lprops); + delete lprops; } count = 0; lprops = mFreeListenerProps.exchange(nullptr, std::memory_order_acquire); while(lprops) { ALlistenerProps *next{lprops->next.load(std::memory_order_relaxed)}; - al_free(lprops); + delete lprops; lprops = next; ++count; } |