Skip to content
Snippets Groups Projects
Commit 5f55f453 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

fix use after free

parent e9c24ecb
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28034 failed
......@@ -59,6 +59,12 @@ Screen::Screen() :
}
Screen::~Screen() {
// removes view; onClose() callback can depend on module
if (active_view_) {
this->removeChild(active_view_);
active_view_ = nullptr;
}
for (auto [name, ptr] : modules_) {
std::ignore = name;
delete ptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment