summaryrefslogtreecommitdiffstats
path: root/application/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'application/widgets')
-rw-r--r--application/widgets/CustomCommands.cpp1
-rw-r--r--application/widgets/CustomCommands.h2
2 files changed, 2 insertions, 1 deletions
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;