weston-ivi-shell: fix a memory leak of surface and resource.