mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
wayland/surface: Remove unnecessary resource user data changing
We're in the destructor, it's pointless to unset the userdata as we'll never ever see a request being invoked with it ever again, since the resource itself will be destroyed or marked as destroyed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2202>
This commit is contained in:
parent
58f82d0624
commit
06c215c747
@ -1476,9 +1476,6 @@ wl_surface_destructor (struct wl_resource *resource)
|
|||||||
|
|
||||||
meta_wayland_surface_discard_presentation_feedback (surface);
|
meta_wayland_surface_discard_presentation_feedback (surface);
|
||||||
|
|
||||||
if (surface->resource)
|
|
||||||
wl_resource_set_user_data (surface->resource, NULL);
|
|
||||||
|
|
||||||
if (surface->wl_subsurface)
|
if (surface->wl_subsurface)
|
||||||
wl_resource_destroy (surface->wl_subsurface);
|
wl_resource_destroy (surface->wl_subsurface);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user