From fbc29b6a0626f2ce8521dc74e3171b634d68e9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 30 Mar 2014 20:11:05 +0200 Subject: Fix many memory leaks. --- gui/MainWindow.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gui/MainWindow.h') diff --git a/gui/MainWindow.h b/gui/MainWindow.h index 3a2843f8..5ddfef7b 100644 --- a/gui/MainWindow.h +++ b/gui/MainWindow.h @@ -23,6 +23,7 @@ #include "logic/BaseInstance.h" #include "logic/auth/MojangAccount.h" +#include class QToolButton; class LabeledToolButton; @@ -118,12 +119,12 @@ slots: * Launches the given instance with the given account. * This function assumes that the given account has a valid, usable access token. */ - void launchInstance(BaseInstance *instance, AuthSessionPtr session, BaseProfilerFactory *profiler = 0); + void launchInstance(InstancePtr instance, AuthSessionPtr session, BaseProfilerFactory *profiler = 0); /*! * Prepares the given instance for launch with the given account. */ - void updateInstance(BaseInstance *instance, AuthSessionPtr account, BaseProfilerFactory *profiler = 0); + void updateInstance(InstancePtr instance, AuthSessionPtr account, BaseProfilerFactory *profiler = 0); void onGameUpdateError(QString error); @@ -145,6 +146,7 @@ slots: void updateToolsMenu(); + void skinJobFinished(); public slots: void instanceActivated(QModelIndex); @@ -189,13 +191,14 @@ private: Ui::MainWindow *ui; class GroupView *view; InstanceProxyModel *proxymodel; + NetJobPtr skin_download_job; MinecraftProcess *proc; ConsoleWindow *console; LabeledToolButton *renameButton; QToolButton *changeIconButton; QToolButton *newsLabel; - BaseInstance *m_selectedInstance; + InstancePtr m_selectedInstance; QString m_currentInstIcon; Task *m_versionLoadTask; -- cgit v1.2.3