-
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.