NOISSUE fix small memory leaks

This commit is contained in:
Petr Mrázek 2019-08-10 19:58:58 +02:00
parent c291946d2a
commit 441e8980b8
4 changed files with 4 additions and 1 deletions

View File

@ -83,6 +83,7 @@ MultiMCPage::MultiMCPage(QWidget *parent) : QWidget(parent), ui(new Ui::MultiMCP
MultiMCPage::~MultiMCPage()
{
delete ui;
delete defaultFormat;
}
bool MultiMCPage::apply()

View File

@ -597,6 +597,7 @@ ServersPage::ServersPage(MinecraftInstance * inst, QWidget* parent)
ServersPage::~ServersPage()
{
m_model->saveNow();
delete ui;
}
void ServersPage::ShowContextMenu(const QPoint& pos)

View File

@ -3,6 +3,7 @@
CustomCommands::~CustomCommands()
{
delete ui;
}
CustomCommands::CustomCommands(QWidget* parent):

View File

@ -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;