scanner: Fix valgrind errors
scanner: Fix valgrind errors

eyolfson/wayland,tulcod/wayland,bitfactor/wayland,sir-murray/wayland,tulcod/wayland,eyolfson/wayland,sir-murray/wayland,sir-murray/wayland,abooij/wayland,abooij/wayland,eyolfson/wayland,abooij/wayland,tulcod/wayland,mchalupa/wayland,bitfactor/wayland,bitfactor/wayland,mchalupa/wayland,mchalupa/wayland