diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-12 13:57:33 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-12 13:57:33 +0100 |
commit | 61dd8a5ee66734dfd53ee9be725c9e71fd8d5414 (patch) | |
tree | da896421d93baa3a80a7c6ebb3a16fc25138516f /confui | |
parent | 8c21a929d06ed108b0e64f3892d036cd4cd67e51 (diff) |
implement DYN_MEMBER_SIZEOF macro correctly and implement cd_cmd_response_sizeof
Diffstat (limited to 'confui')
-rw-r--r-- | confui/mainwindow.cpp | 5 | ||||
-rw-r--r-- | confui/serial.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/confui/mainwindow.cpp b/confui/mainwindow.cpp index 1fd34c4..b5bbdf0 100644 --- a/confui/mainwindow.cpp +++ b/confui/mainwindow.cpp @@ -13,7 +13,10 @@ CDMeshConnector *g_cd_mesh_connector = nullptr; CDSerialConnector *g_cd_serial = nullptr; QApplication* g_cd_app = nullptr; -CDMainWindow::~CDMainWindow() { delete this->mesh_connector; } +CDMainWindow::~CDMainWindow() { + delete g_cd_mesh_connector; + delete g_cd_serial; +} CDMainWindow::CDMainWindow(QWidget *parent) : QMainWindow(parent) { g_cd_mesh_connector = new CDMeshConnector(); diff --git a/confui/serial.h b/confui/serial.h index 22f2542..aa0508f 100644 --- a/confui/serial.h +++ b/confui/serial.h @@ -11,7 +11,7 @@ using std::vector; class CDSerialConnector { public: CDSerialConnector(); - ~CDSerialConnector(); + virtual ~CDSerialConnector(); /** @brief get list of available serial ports */ static vector<string> get_ports(); |