rdpsnd: fix mem leak and lower pulse record latency