attempt at fixing plugin related allocation crashes on exit
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled

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) { MainScreen::~MainScreen(void) {
pm.stopAll();
// TODO: quit sdl audio // TODO: quit sdl audio
} }

View File

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