The cleanup method cleans up the memory after an RiCOSMutex object is destroyed.
void RiCOSMutex_cleanup (RiCOSMutex * const me);
me
The deleted RiCOSMutex object to clean up after
void RiCOSMutex_cleanup(RiCOSMutex * const me)
{
if (me != NULL && me->hMutex !=NULL) {
semDelete(me->hMutex);
me->hMutex = NULL;
}
}