mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
wayland-surface: Unref the buffer after removing the destroy listener
This commit is contained in:
parent
456e3e2429
commit
44580ddb80
@ -83,8 +83,8 @@ surface_set_buffer (MetaWaylandSurface *surface,
|
||||
|
||||
if (surface->buffer)
|
||||
{
|
||||
meta_wayland_buffer_unref (surface->buffer);
|
||||
wl_list_remove (&surface->buffer_destroy_listener.link);
|
||||
meta_wayland_buffer_unref (surface->buffer);
|
||||
}
|
||||
|
||||
surface->buffer = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user