rem: if (dock->auto_collapse_magic) { WMDeleteTimerHandler(dock->auto_collapse_magic); dock->auto_collapse_magic = NULL; }
context: toggleAutoCollapseCallback(WMenu *menu, WMenuEntry *entry){    WDock *dock;    assert(entry->clientdata!=NULL);    dock = (WDock*) entry->clientdata;    dock->auto_collapse = !dock->auto_collapse;    if (dock->auto_collapse_magic) {        WMDeleteTimerHandler(dock->auto_collapse_magic);        dock->auto_collapse_magic = NULL;    }    entry->flags.indicator_on = ((WDock*)entry->clientdata)->auto_collapse;    wMenuPaint(menu);}