diff options
author | Andrei Karas <akaras@inbox.ru> | 2009-12-05 02:33:52 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-04 18:56:18 -0700 |
commit | 1eb02f83a5d3895e4e18db30ea10d88da94ba4c0 (patch) | |
tree | ee1696d4055dd6945e714b8896ed13a187946546 /src/gui/updatewindow.cpp | |
parent | 91af32bac65b20a446f2e49f023d3d526729e8ea (diff) | |
download | mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.gz mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.bz2 mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.tar.xz mana-1eb02f83a5d3895e4e18db30ea10d88da94ba4c0.zip |
Fixing multi thread crash.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 14ebe6b1..801bd161 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -115,6 +115,10 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost, UpdaterWindow::~UpdaterWindow() { + if (mDownload) + { + mDownload->cancel(); + } free(mMemoryBuffer); } |