xrdp-ng: make use of copy/free from tables