Skip to content
  • Juan A. Suárez's avatar
    egl/wayland: do not leak wl_buffer when it is locked · 54a9622d
    Juan A. Suárez authored
    
    
    If color buffer is locked, do not set its wayland buffer to NULL;
    otherwise it can not be freed later.
    
    Rather, flag it in order to destroy it later on the release event.
    
    v2: instruct release event to unlock only or free wl_buffer too (Daniel)
    
    This also fixes dEQP-EGL.functional.swap_buffers_with_damage.* tests.
    
    CC: Daniel Stone <daniel@fooishbar.org>
    Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
    54a9622d