Skip to content
  • Lloyd Konneker's avatar
    Fix #11613 crash Wayland flatpak unreffing GBytes window handle · 0dae6177
    Lloyd Konneker authored and Lloyd Konneker's avatar Lloyd Konneker committed
    Refactor: extract method gimp_widget_free_native_handle.
    This reduces duplication of code and encapsulates Wayland specific code.
    
    Call the new function in more places.
    This is expected to fix #11613 but it is hard to be sure
    since the exact sequence of events in 11613 was never determined
    and only reproduceable in some flatpak builds.
    
    Calling the new function in more places also should eliminate leaks.
    But I did not test there was a leak prior to this fix.
    0dae6177