Fixed a segfault on second open

This commit is contained in:
Matthias Koefferlein 2022-05-09 23:20:46 +02:00
parent fbc31fd854
commit f57f1cc228
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,10 @@ LayoutView::~LayoutView ()
{
close_event ();
if (ms_current == this) {
ms_current = 0;
}
if (mp_control_frame) {
delete mp_control_frame;
}