[ozone/wayland] MockSurface should destroy its role upon destruction
TestSubsurface has a ptr to MockSurface wl_resource which may incur use-after-free if MockSurface is destroyed first. Do the same thing we do for MockXdgSurface in MockSurface dtor to avoid it. Change-Id: Ia63c187485c39033f715f446cc724fcc4043b46a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391388Reviewed-by:Maksim Sisov (GMT+3) <msisov@igalia.com> Reviewed-by:
Takashi Sakamoto <tasak@google.com> Commit-Queue: Kramer Ge <fangzhoug@chromium.org> Cr-Commit-Position: refs/heads/master@{#805289}
Showing
Please register or sign in to comment