Skip to content
  • Michel Dänzer's avatar
    xwayland: Free all remaining events in xwl_present_cleanup · b6705274
    Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
    
    
    These events aren't reachable after xwl_present_cleanup, so they're
    leaked if we don't free them first.
    
    This requires storing the pixmap pointer in struct xwl_present_window.
    Luckily, the buffer pointer isn't used for anything, so just replace
    that.
    
    v2:
    * Bump pixmap reference count in xwl_present_flip and drop it in
      xwl_present_free_event, fixes use-after-free in the latter due to the
      pixmap already being destroyed.
    
    Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
    b6705274