compositor-rdp: Properly destroy the renderer and pixman image

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
This commit is contained in:
Armin Krezović 2016-09-30 14:11:15 +02:00 committed by Pekka Paalanen
parent 927267b915
commit a483cac1af

View File

@ -542,6 +542,9 @@ rdp_output_disable(struct weston_output *base)
if (!output->base.enabled)
return 0;
pixman_image_unref(output->shadow_surface);
pixman_renderer_output_destroy(&output->base);
wl_event_source_remove(output->finish_frame_timer);
b->output = NULL;