mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Fix source and sink refcounting.
This commit is contained in:
@@ -317,7 +317,7 @@ void ReleaseSource(CS_Source source, CS_Status* status) {
|
||||
*status = CS_INVALID_HANDLE;
|
||||
return;
|
||||
}
|
||||
if (--(data->refCount) == 0) inst.Free(source);
|
||||
if (data->refCount-- == 0) inst.Free(source);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -430,7 +430,7 @@ void ReleaseSink(CS_Sink sink, CS_Status* status) {
|
||||
*status = CS_INVALID_HANDLE;
|
||||
return;
|
||||
}
|
||||
if (--(data->refCount) == 0) inst.Free(sink);
|
||||
if (data->refCount-- == 0) inst.Free(sink);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user