/** Destroy clock(s). */ void DestroyClock(void) { while(clocks) { ClockType *cp = clocks->next; if(clocks->format) { Release(clocks->format); } if(clocks->zone) { Release(clocks->zone); } DestroyActions(clocks->actions); UnregisterCallback(SignalClock, clocks); Release(clocks); clocks = cp; } }
/** Release tray button data. */ void DestroyTrayButtons(void) { TrayButtonType *bp; while(buttons) { bp = buttons->next; UnregisterCallback(SignalTrayButton, buttons); if(buttons->label) { Release(buttons->label); } if(buttons->iconName) { Release(buttons->iconName); } DestroyActions(buttons->actions); if(buttons->popup) { Release(buttons->popup); } Release(buttons); buttons = bp; } }