From 441e8980b81186e00fe4c79109f616343deb7eaf Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 10 Aug 2019 19:58:58 +0200 Subject: NOISSUE fix small memory leaks --- application/widgets/CustomCommands.cpp | 1 + application/widgets/CustomCommands.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'application/widgets') diff --git a/application/widgets/CustomCommands.cpp b/application/widgets/CustomCommands.cpp index 9e7673fd..24bdc07d 100644 --- a/application/widgets/CustomCommands.cpp +++ b/application/widgets/CustomCommands.cpp @@ -3,6 +3,7 @@ CustomCommands::~CustomCommands() { + delete ui; } CustomCommands::CustomCommands(QWidget* parent): diff --git a/application/widgets/CustomCommands.h b/application/widgets/CustomCommands.h index 451b2cc0..4d447f7b 100644 --- a/application/widgets/CustomCommands.h +++ b/application/widgets/CustomCommands.h @@ -28,7 +28,7 @@ class CustomCommands : public QWidget public: explicit CustomCommands(QWidget *parent = 0); - ~CustomCommands(); + virtual ~CustomCommands(); void initialize(bool checkable, bool checked, const QString & prelaunch, const QString & wrapper, const QString & postexit); bool checked() const; -- cgit