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
3 changed files with 4 additions and 2 deletions

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};