summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
commited39c71b2b6b47931f352ca07b49f631d6bf713a (patch)
treeb66630214ae3b84aa5e8cb910c2801b2a610012b /src/gui/serverdialog.cpp
parentdca3a657c821925b6a3d6776e7cdcb35608989fe (diff)
downloadmana-client-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.gz
mana-client-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.bz2
mana-client-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.xz
mana-client-ed39c71b2b6b47931f352ca07b49f631d6bf713a.zip
Cleanup some memory issues
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp4
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;
}