MGS-4627 [#ccc] weston will turn off when panel-psotion=none and use
gplay
Met free invalid pointer
initialize clipped_view
weston 6.0 fixed it no need merge
Upstream-Status: Inappropriate [i.MX-specific]
Signed-off-by Wujian Sun <wujian.sun@nxp.com>
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 0f90ff8..3365d29 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -3730,6 +3730,7 @@
bool totally_occluded = false;
bool overlay_occluded = false;
struct linux_dmabuf_buffer *dmabuf = NULL;
+ pixman_region32_init(&clipped_view);
/* If this view doesn't touch our output at all, there's no
* reason to do anything with it. */
@@ -3761,7 +3762,6 @@
}
/* Ignore views we know to be totally occluded. */
- pixman_region32_init(&clipped_view);
pixman_region32_intersect(&clipped_view,
&ev->transform.boundingbox,
&output->base.region);