mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-25 15:16:02 +00:00
NOISSUE fix small memory leaks
This commit is contained in:
parent
c291946d2a
commit
441e8980b8
@ -83,6 +83,7 @@ MultiMCPage::MultiMCPage(QWidget *parent) : QWidget(parent), ui(new Ui::MultiMCP
|
||||
MultiMCPage::~MultiMCPage()
|
||||
{
|
||||
delete ui;
|
||||
delete defaultFormat;
|
||||
}
|
||||
|
||||
bool MultiMCPage::apply()
|
||||
|
@ -597,6 +597,7 @@ ServersPage::ServersPage(MinecraftInstance * inst, QWidget* parent)
|
||||
ServersPage::~ServersPage()
|
||||
{
|
||||
m_model->saveNow();
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ServersPage::ShowContextMenu(const QPoint& pos)
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
CustomCommands::~CustomCommands()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
CustomCommands::CustomCommands(QWidget* parent):
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user