mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Avoid possible crash on exit when the IP filter is enabled
This commit is contained in:
@@ -161,9 +161,6 @@ QBtSession::~QBtSession() {
|
||||
#endif
|
||||
saveSessionState();
|
||||
saveFastResumeData();
|
||||
qDebug("Deleting the session");
|
||||
delete s;
|
||||
qDebug("Session deleted");
|
||||
// Delete our objects
|
||||
if(m_tracker)
|
||||
delete m_tracker;
|
||||
@@ -178,6 +175,8 @@ QBtSession::~QBtSession() {
|
||||
// HTTP Server
|
||||
if(httpServer)
|
||||
delete httpServer;
|
||||
qDebug("Deleting the session");
|
||||
delete s;
|
||||
qDebug("BTSession destructor OUT");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user