weston_buffer: Hold lifetime for resource/backend usage

Keep the weston_buffer alive for as long as at least one of the
underlying wl_buffer or a backend usage exists.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-01-14 06:33:21 +00:00
parent d2a858e879
commit 7e90433079
2 changed files with 20 additions and 24 deletions
-1
View File
@@ -1203,7 +1203,6 @@ struct weston_buffer {
struct weston_buffer_reference {
struct weston_buffer *buffer;
struct wl_listener destroy_listener;
};
struct weston_buffer_viewport {