compositor: set weston_surface:resource to NULL when destroyed
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Fri, 15 Nov 2013 21:06:15 +0000 (22:06 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Nov 2013 06:00:17 +0000 (22:00 -0800)
commit0d379744d34e616fea840272deda6b7027f79f55
tree927dde763c203b2aa84ecb19c55cee17a446e512
parentb9eae3369b1d8861537c57af4e95cd725fdc84a8
compositor: set weston_surface:resource to NULL when destroyed

with the previous patch the resource isn't used inside weston_surface_destroy()
anymore (aside sending events unuseful for a closing client), so we can safely
reset it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
src/compositor.c