diff options
-rw-r--r-- | application/pages/global/MultiMCPage.cpp | 1 | ||||
-rw-r--r-- | application/pages/instance/ServersPage.cpp | 1 | ||||
-rw-r--r-- | application/widgets/CustomCommands.cpp | 1 | ||||
-rw-r--r-- | application/widgets/CustomCommands.h | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/application/pages/global/MultiMCPage.cpp b/application/pages/global/MultiMCPage.cpp index 541af287..3a8c46e8 100644 --- a/application/pages/global/MultiMCPage.cpp +++ b/application/pages/global/MultiMCPage.cpp @@ -83,6 +83,7 @@ MultiMCPage::MultiMCPage(QWidget *parent) : QWidget(parent), ui(new Ui::MultiMCP MultiMCPage::~MultiMCPage() { delete ui; + delete defaultFormat; } bool MultiMCPage::apply() diff --git a/application/pages/instance/ServersPage.cpp b/application/pages/instance/ServersPage.cpp index c33eef1f..8b0c655c 100644 --- a/application/pages/instance/ServersPage.cpp +++ b/application/pages/instance/ServersPage.cpp @@ -597,6 +597,7 @@ ServersPage::ServersPage(MinecraftInstance * inst, QWidget* parent) ServersPage::~ServersPage() { m_model->saveNow(); + delete ui; } void ServersPage::ShowContextMenu(const QPoint& pos) 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; |