Wayland leaks

Few fixes for wayland platform resource leaks