rem: free(file);
add: wfree(file);
context: buttonClick(WMButton *bPtr, WMFilePanel *panel){    WMRange range;    if (bPtr == panel->okButton) {        if (!validOpenFile(panel))            return;	if (panel->flags.fileMustExist) {	    char *file;	    	    file = getCurrentFileName(panel);	    if (access(file, F_OK)!=0) {		WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win,				"Error", "File does not exist.",				"Ok", NULL, NULL);		free(file);		return;	    }	    free(file);	}	panel->flags.canceled = 0;    } else	panel->flags.canceled = 1;    range.count = range.position = 0;    WMSelectTextFieldRange(panel->fileField, range);    panel->flags.done = 1;}