Skip to content
  • Leandro Ribeiro's avatar
    weston-log-wayland: make stream_destroy() use weston_log_subscriber_release() · d65483ec
    Leandro Ribeiro authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    Make stream_destroy() use weston_log_subscriber_release().
    This avoids code duplication and allow us to destroy
    weston_log_subscriber_get_only_subscription(), since it's
    being used only in this case and it's internal.
    
    Calls for weson_log_subscriber_release() leads to
    weston_log_debug_wayland_to_destroy(), which should not
    send an error event when the stream has already been closed.
    
    Also, stream_destroy() shouldn't lead to an event error, as
    it is a wl_resource destroy handler. So close the stream before
    calling weston_log_subscriber_release() in stream_destroy()
    
    Signed-off-by: default avatarLeandro Ribeiro <leandrohr@riseup.net>
    d65483ec