Weston would crash when hot plugging/unplugging outputs using the DRM
backend due to a corrupted plane list.
https://bugs.freedesktop.org/show_bug.cgi?id=66530
https://bugs.freedesktop.org/show_bug.cgi?id=66529
pixman_region32_init(&plane->clip);
plane->x = x;
plane->y = y;
+
+ /* Init the link so that the call to wl_list_remove() when releasing
+ * the plane without ever stacking doesn't lead to a crash */
+ wl_list_init(&plane->link);
}
WL_EXPORT void
{
pixman_region32_fini(&plane->damage);
pixman_region32_fini(&plane->clip);
+
+ wl_list_remove(&plane->link);
}
WL_EXPORT void