From a6a854320524bc527faf67004227c0910b1cb27b Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 19 Jun 2020 17:10:05 +0200 Subject: [PATCH] Avoid the crash if used in a simulator --- radio/src/thirdparty/libopenui/src/mainwindow.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/mainwindow.h b/radio/src/thirdparty/libopenui/src/mainwindow.h index e345c9de7..da1cdef85 100644 --- a/radio/src/thirdparty/libopenui/src/mainwindow.h +++ b/radio/src/thirdparty/libopenui/src/mainwindow.h @@ -32,6 +32,11 @@ class MainWindow: public Window { { } + ~MainWindow() override + { + children.clear(); + } + #if defined(DEBUG_WINDOWS) std::string getName() const override {