mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix crash on exit under Wayland
Order of free error from [0] caused the timer manager
to be freed before the timer.
[0]: 7de1a4d1d8
This commit is contained in:
parent
e4f77c1a6c
commit
dbca0cc9d5
1 changed files with 5 additions and 3 deletions
|
|
@ -975,9 +975,6 @@ static void gwl_display_destroy(GWL_Display *display)
|
|||
ghost_wl_display_lock_without_input(display->wl_display, display->system->server_mutex);
|
||||
display->events_pthread_is_active = false;
|
||||
}
|
||||
|
||||
delete display->ghost_timer_manager;
|
||||
display->ghost_timer_manager = nullptr;
|
||||
#endif
|
||||
|
||||
/* For typical WAYLAND use this will always be set.
|
||||
|
|
@ -1015,6 +1012,11 @@ static void gwl_display_destroy(GWL_Display *display)
|
|||
gwl_display_event_thread_destroy(display);
|
||||
display->system->server_mutex->unlock();
|
||||
}
|
||||
|
||||
/* Important to remove after the seats which may have key repeat timers active. */
|
||||
delete display->ghost_timer_manager;
|
||||
display->ghost_timer_manager = nullptr;
|
||||
|
||||
#endif /* USE_EVENT_BACKGROUND_THREAD */
|
||||
|
||||
if (display->wl_display) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue