https://bugs.freedesktop.org/show_bug.cgi?id=87824
Bug ID: 87824
Summary: Dangling pointers and memory corruption after output
recreate.
Product: Wayland
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: weston
Assignee: [email protected]
Reporter: [email protected]
Way to reproduce:
- weston backend closes current output and creates new one.
- old weston_output structure is released.
- compositor views have pointers to old weston_output.
- these pointers became dangling.
Fix:
in weston_compositor_remove_output(...) add resetting reference to output:
wl_list_for_each(view, &compositor->view_list, link) {
if (view->output == remove_output) {
view->output = NULL;
view->surface->output = NULL;
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs