Fixed a potential crash on application exit that was discovered during debugging

This commit is contained in:
Matthias Koefferlein 2025-09-28 16:25:35 +02:00
parent 292f6f84c6
commit 31ddbe24fa
1 changed files with 6 additions and 0 deletions

View File

@ -475,6 +475,12 @@ LayoutViewBase::shutdown ()
}
}
// NOTE: this must happen before the services are deleted
mp_move_service = 0;
mp_selection_service = 0;
mp_tracker = 0;
mp_zoom_service = 0;
// delete all plugins
std::vector<lay::Plugin *> plugins;
plugins.swap (mp_plugins);