Fix possible crash when using the new "Auto-shutdown" feature

This commit is contained in:
Christophe Dumez 2010-08-20 09:31:00 +00:00
parent c1fa7f8645
commit e323175275
3 changed files with 8 additions and 6 deletions

View file

@ -286,10 +286,8 @@ GUI::~GUI() {
delete switchTransferShortcut;
delete switchRSSShortcut;
// Delete BTSession objects
qDebug("Deleting BTSession");
delete BTSession;
// Deleting remaining top level widgets
qDebug("Deleting remaining top level widgets");
// May freeze for a few seconds after the next line
// because the Bittorrent session proxy will
// actually be deleted now and destruction