diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4407c4c88..4b64a19d8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -269,10 +269,8 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo void MainWindow::deleteBTSession() { guiUpdater->stop(); status_bar->stopTimer(); - if(BTSession) { - delete BTSession; - BTSession = 0; - } + QBtSession::drop(); + BTSession = 0; QTimer::singleShot(0, this, SLOT(close())); }