aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 23:05:47 -0700
committerChris Robinson <[email protected]>2011-08-29 23:10:02 -0700
commitcc67f4589256efceb17c58673159b3e687ec0436 (patch)
treefe7c3688ac00bdb6ee0fc9766216ab4b9f9144b8 /Alc/ALc.c
parentc6a110ec59c794f08446bd8bb9d90958903984c9 (diff)
Use the reference counting functions for the buffer and auxiliary slot refs
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ff5f3c78..bae464cc 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1265,7 +1265,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
while(s < MAX_SENDS)
{
if(source->Send[s].Slot)
- source->Send[s].Slot->refcount--;
+ DecrementRef(&source->Send[s].Slot->ref);
source->Send[s].Slot = NULL;
source->Send[s].WetFilter.type = 0;
source->Send[s].WetFilter.filter = 0;