summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 508148e6..85a14ba8 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -180,6 +180,9 @@ UpdaterWindow::~UpdaterWindow()
if (mDownload)
{
mDownload->cancel();
+
+ delete mDownload;
+ mDownload = 0;
}
free(mMemoryBuffer);
}