diff options
-rw-r--r-- | src/ui_download_manager.cc | 4 | ||||
-rw-r--r-- | src/ui_download_manager.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ui_download_manager.cc b/src/ui_download_manager.cc index 366d45b8..ea1f9d17 100644 --- a/src/ui_download_manager.cc +++ b/src/ui_download_manager.cc @@ -49,8 +49,10 @@ ui_download_manager::~ui_download_manager() delete st; } -void ui_download_manager::done(download_thread *, pkgAcquire::RunResult res) +void ui_download_manager::done(download_thread *t, pkgAcquire::RunResult res) { + delete t; + progress_with_destructor pair = make_progress_bar(); done_progress = pair.first; done_progress_destructor = pair.second; diff --git a/src/ui_download_manager.h b/src/ui_download_manager.h index cd1deea0..18bb6231 100644 --- a/src/ui_download_manager.h +++ b/src/ui_download_manager.h @@ -183,7 +183,7 @@ class ui_download_manager : public sigc::trackable */ sigc::slot0<void> done_progress_destructor; - void done(download_thread *, pkgAcquire::RunResult res); + void done(download_thread *t, pkgAcquire::RunResult res); /** \brief Finishes the work of done() after the post-download * actions of the download manager have run. |