compositor: fix memory corruption when removing an output
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Sat, 6 Sep 2014 13:18:02 +0000 (16:18 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 9 Sep 2014 11:00:20 +0000 (14:00 +0300)
commit00535ce6b4bee3daac378e3baa83966dcbd96b0b
tree42e5ae3586844e7ac8f3ff21002a16b3b15b7aff
parent03faed2074794236d94e68aaf7c9d7c2ad5beafd
compositor: fix memory corruption when removing an output

The destructor set on the wl_output resources needs the weston_output
to be allocated, because it removes the resource from its list.
So unset the destructor on all the resources when destroying an
output.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c