GHOST/Wayland: add missing call to destroy xdg_output

Match logic from SDL.
This commit is contained in:
Campbell Barton 2023-01-04 15:49:12 +11:00
parent c26616b2c1
commit 50dbedf0d8
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #102967, 3.4: Potential candidates for corrective releases
1 changed files with 3 additions and 0 deletions

View File

@ -4741,6 +4741,9 @@ static void gwl_registry_wl_output_remove(GWL_Display *display,
/* While windows & cursors hold references to outputs, there is no need to manually remove
* these references as the compositor will remove references via #wl_surface_listener.leave. */
GWL_Output *output = static_cast<GWL_Output *>(user_data);
if (output->xdg_output) {
zxdg_output_v1_destroy(output->xdg_output);
}
wl_output_destroy(output->wl_output);
std::vector<GWL_Output *>::iterator iter = std::find(
display->outputs.begin(), display->outputs.end(), output);