diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-30 20:11:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-30 20:11:41 +0200 |
commit | fbc29b6a0626f2ce8521dc74e3171b634d68e9e5 (patch) | |
tree | d2d79201be585131be2ab0cd7d337237887af5a0 /gui/dialogs | |
parent | e1e1d99102936b419aac52974f1fdb8be835b0d4 (diff) | |
download | MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.gz MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.lz MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.xz MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.zip |
Fix many memory leaks.
Diffstat (limited to 'gui/dialogs')
-rw-r--r-- | gui/dialogs/CopyInstanceDialog.cpp | 2 | ||||
-rw-r--r-- | gui/dialogs/CopyInstanceDialog.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gui/dialogs/CopyInstanceDialog.cpp b/gui/dialogs/CopyInstanceDialog.cpp index 4095408b..71429367 100644 --- a/gui/dialogs/CopyInstanceDialog.cpp +++ b/gui/dialogs/CopyInstanceDialog.cpp @@ -32,7 +32,7 @@ #include "logic/tasks/Task.h" #include "logic/BaseInstance.h" -CopyInstanceDialog::CopyInstanceDialog(BaseInstance *original, QWidget *parent) +CopyInstanceDialog::CopyInstanceDialog(InstancePtr original, QWidget *parent) :QDialog(parent), ui(new Ui::CopyInstanceDialog), m_original(original) { MultiMCPlatform::fixWM_CLASS(this); diff --git a/gui/dialogs/CopyInstanceDialog.h b/gui/dialogs/CopyInstanceDialog.h index 7ab366e2..95f4bf6c 100644 --- a/gui/dialogs/CopyInstanceDialog.h +++ b/gui/dialogs/CopyInstanceDialog.h @@ -17,6 +17,7 @@ #include <QDialog> #include "logic/BaseVersion.h" +#include <logic/BaseInstance.h> class BaseInstance; @@ -30,7 +31,7 @@ class CopyInstanceDialog : public QDialog Q_OBJECT public: - explicit CopyInstanceDialog(BaseInstance *original, QWidget *parent = 0); + explicit CopyInstanceDialog(InstancePtr original, QWidget *parent = 0); ~CopyInstanceDialog(); void updateDialogState(); @@ -46,5 +47,5 @@ slots: private: Ui::CopyInstanceDialog *ui; QString InstIconKey; - BaseInstance *m_original; + InstancePtr m_original; }; |