attempt at fixing plugin related allocation crashes on exit

This commit is contained in:
Green Sky 2025-04-11 21:03:03 +02:00
parent 8cb8470c3a
commit f18d716924
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A
3 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit e25ee67e4277da712504444a9d29b82eef6cbd98
Subproject commit d03d2dae67381ab228fe0fa134756489e92b9c86

View File

@ -205,6 +205,7 @@ MainScreen::MainScreen(const SimpleConfigModel& conf_, SDL_Renderer* renderer_,
}
MainScreen::~MainScreen(void) {
pm.stopAll();
// TODO: quit sdl audio
}

View File

@ -56,6 +56,8 @@ extern "C" {
} // C
struct MainScreen final : public Screen {
PluginManager pm; // first, so it gets destroyed last
SDL_Renderer* renderer;
ObjectStore2 os;
@ -106,7 +108,6 @@ struct MainScreen final : public Screen {
StreamManagerUI smui;
DebugVideoTap dvt;
PluginManager pm; // last, so it gets destroyed first
bool _show_tool_style_editor {false};
bool _show_tool_metrics {false};