X11 - fixed memory leak