libs/libc/audio/lib_buffer.c: Call nxsem_destroy in apb_free

This commit is contained in:
Xiang Xiao 2018-08-27 07:49:23 -06:00 committed by Gregory Nutt
parent 4d115e925f
commit d025162542

View File

@ -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);
}
}