compositor: Eliminate marshalling warning for leave events
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 8 Jul 2013 17:49:36 +0000 (13:49 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 8 Jul 2013 17:49:36 +0000 (13:49 -0400)
commit9dadfb53526bc97d62dc01c165e8b6f722f7ea5a
treeb81adcaaad258f9a2d0ecc214c6136bb276a8af3
parent708b8af01845df02e23901e0762e6eca16ca12ce
compositor: Eliminate marshalling warning for leave events

Don't NULL the resource pointer before calling weston_surface_destroy().
We use to have more of a distinction between compositor created surfaces
and client surfaces, and weston_surface_destroy couldn't be used for
client surfaces.  Now it all goes through weston_surface_destroy() and
we can remove the assert and the NULL-ing of resource, which caused the
marshalling warning.
src/compositor.c