From 2d24b468b650e1f1b77c048b5286f924dd367cbc Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 1 Nov 2008 12:33:52 +0000 Subject: [PATCH] Fixed possible crash when deleting a torrent permanently --- Changelog | 3 +++ src/deleteThread.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 557a7fd3b..286567f67 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Unknown - Christophe Dumez - v1.2.1 + - BUGFIX: Fixed possible crash when deleting a torrent permanently + * Wed Oct 29th 2008 - Christophe Dumez - v1.2.0 - FEATURE: Torrent queueing system (with priorities) - FEATURE: The number of DHT nodes is displayed diff --git a/src/deleteThread.h b/src/deleteThread.h index 02242fa3b..fc4610e09 100644 --- a/src/deleteThread.h +++ b/src/deleteThread.h @@ -42,8 +42,8 @@ class subDeleteThread : public QThread { } ~subDeleteThread(){ + wait(); qDebug("subDeleteThread successfuly deleted"); - //wait(); } signals: @@ -58,8 +58,8 @@ class subDeleteThread : public QThread { else emit deletionFailureST(this);*/ arb->removeFromFS(save_path); - emit deletionSuccessST(this); delete arb; + emit deletionSuccessST(this); } };