Can you reproduce your crash? Try to add error trap around XFixesDestroyRegion (xdisplay, cw->window_region); line.
Anyway I am starting to think that it is better to add error trap for whole free_win function.
Can you reproduce your crash? Try to add error trap around XFixesDestroyRegion (xdisplay, cw->window_region); line.
Anyway I am starting to think that it is better to add error trap for whole free_win function.