rem: free(legalPanel);
add: wfree(legalPanel);
context: destroyLegalPanel(WCoreWindow *foo, void *data, XEvent *event){    WMUnmapWidget(legalPanel->win);    WMDestroyWidget(legalPanel->win);        wUnmanageWindow(legalPanel->wwin, False, False);    free(legalPanel);        legalPanel = NULL;}