summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-08-10 19:58:58 +0200
committerPetr Mrázek <peterix@gmail.com>2019-08-10 19:58:58 +0200
commit441e8980b81186e00fe4c79109f616343deb7eaf (patch)
tree447738dae98aa598b2d1233d1d98f2ee7de401dc /application
parentc291946d2a8c3e03940da4070533e124283d303c (diff)
downloadMultiMC-441e8980b81186e00fe4c79109f616343deb7eaf.tar
MultiMC-441e8980b81186e00fe4c79109f616343deb7eaf.tar.gz
MultiMC-441e8980b81186e00fe4c79109f616343deb7eaf.tar.lz
MultiMC-441e8980b81186e00fe4c79109f616343deb7eaf.tar.xz
MultiMC-441e8980b81186e00fe4c79109f616343deb7eaf.zip
NOISSUE fix small memory leaks
Diffstat (limited to 'application')
-rw-r--r--application/pages/global/MultiMCPage.cpp1
-rw-r--r--application/pages/instance/ServersPage.cpp1
-rw-r--r--application/widgets/CustomCommands.cpp1
-rw-r--r--application/widgets/CustomCommands.h2
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;