libs/libc/audio/lib_buffer.c: Call nxsem_destroy in apb_free
This commit is contained in:
parent
4d115e925f
commit
d025162542
@ -162,6 +162,7 @@ void apb_free(FAR struct ap_buffer_s *apb)
|
||||
if (refcount <= 1)
|
||||
{
|
||||
audinfo("Freeing %p\n", apb);
|
||||
nxsem_destroy(&apb->sem);
|
||||
lib_ufree(apb);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user