fix video (x11) memory leak