From cbe7fb0bb5fbca0ffc37cfc7f1c78fc96fad7c1e Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 14 Sep 2017 11:43:29 +0300 Subject: [PATCH] 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 Reviewed-by: Ian Ray Acked-by Daniel Stone --- libweston/compositor-fbdev.c | 3 +++ 1 file changed, 3 insertions(+) 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);