diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-09-14 11:43:29 +0300 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-10-04 16:18:06 +0300 |
commit | cbe7fb0bb5fbca0ffc37cfc7f1c78fc96fad7c1e (patch) | |
tree | 874e4fe3b3dfdd2da6bd62f690b03e4f833a387b | |
parent | 82ffe79b18bd01e016559d024b16e79d4abd736c (diff) |
compositor-fbdev: fix finish_frame_timer leak
The timer was never removed anywhere. Remove it in disable() to match
what happens in enable().
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Acked-by Daniel Stone <daniels@collabora.com>
-rw-r--r-- | libweston/compositor-fbdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c index f5aa44b7..4b3605cf 100644 --- a/libweston/compositor-fbdev.c +++ b/libweston/compositor-fbdev.c @@ -485,6 +485,9 @@ fbdev_output_disable(struct weston_output *base) if (!base->enabled) return 0; + wl_event_source_remove(output->finish_frame_timer); + output->finish_frame_timer = NULL; + pixman_renderer_output_destroy(&output->base); fbdev_frame_buffer_unmap(output); |