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)
|
if (surface->buffer)
|
||||||
{
|
{
|
||||||
meta_wayland_buffer_unref (surface->buffer);
|
|
||||||
wl_list_remove (&surface->buffer_destroy_listener.link);
|
wl_list_remove (&surface->buffer_destroy_listener.link);
|
||||||
|
meta_wayland_buffer_unref (surface->buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
surface->buffer = buffer;
|
surface->buffer = buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user