From 6dba368acc7964d5cb1d14667ba36f3cc4d697af Mon Sep 17 00:00:00 2001 From: Ilia Bozhinov Date: Wed, 14 Mar 2018 10:59:52 +0200 Subject: [PATCH] compositor: do not free output region twice in weston_output_set_transform() This is already done when weston_output_init_geometry() is called. Actually this is a fix for 8564a0d, because without this patch, the compositor sometimes crashes when setting output transform Signed-off-by: Ilia Bozhinov Reviewed-by: Pekka Paalanen --- libweston/compositor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index 274a22d3..67b5d283 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -4706,9 +4706,6 @@ weston_output_set_transform(struct weston_output *output, pixman_region32_init(&old_region); pixman_region32_copy(&old_region, &output->region); - pixman_region32_fini(&output->region); - pixman_region32_fini(&output->previous_damage); - weston_output_init_geometry(output, output->x, output->y); output->dirty = 1;