xfreerdp: fix multiple egfx-related memory leaks