diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-07 17:10:39 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-07 17:10:39 -0700 |
commit | ed39c71b2b6b47931f352ca07b49f631d6bf713a (patch) | |
tree | b66630214ae3b84aa5e8cb910c2801b2a610012b /src/gui/serverdialog.cpp | |
parent | dca3a657c821925b6a3d6776e7cdcb35608989fe (diff) | |
download | mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.gz mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.bz2 mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.xz mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.zip |
Cleanup some memory issues
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 07f23c0a..b5cd5366 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -227,7 +227,11 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir): ServerDialog::~ServerDialog() { if (mDownload) + { mDownload->cancel(); + delete mDownload; + mDownload = 0; + } delete mServersListModel; delete mTypeListModel; } |