void ReleaseNotifier(LPCUSBSIO_I2C_Ctrl_t * dev) { void* Notifier = NULL; if(NULL != dev) { framework_LockMutex(dev->NotifierContainerLock); if(NULL != dev->NotifierContainer) { do { container_remove(dev->NotifierContainer, 0x00, &Notifier); if(NULL != Notifier) { framework_DeleteMutex(Notifier); Notifier = NULL; } }while(NULL != Notifier); container_delete(dev->NotifierContainer); dev->NotifierContainer = NULL; } framework_UnlockMutex(dev->NotifierContainerLock); } }
~EffectConnection() { container_delete(opaque_materials_); container_delete(transparent_materials_); }