mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
BUGFIX: Avoid possible crash on exit when the IP filter is enabled (closes #695945)
This commit is contained in:
@@ -88,6 +88,7 @@ protected:
|
||||
}
|
||||
}
|
||||
}
|
||||
if(abort) return;
|
||||
s->set_ip_filter(filter);
|
||||
qDebug("IP Filter thread: finished parsing, filter applied");
|
||||
}
|
||||
|
||||
@@ -155,9 +155,6 @@ QBtSession::~QBtSession() {
|
||||
#endif
|
||||
saveSessionState();
|
||||
saveFastResumeData();
|
||||
qDebug("Deleting the session");
|
||||
delete s;
|
||||
qDebug("Session deleted");
|
||||
// Delete our objects
|
||||
if(m_tracker)
|
||||
delete m_tracker;
|
||||
@@ -174,6 +171,8 @@ QBtSession::~QBtSession() {
|
||||
delete httpServer;
|
||||
if(timerETA)
|
||||
delete timerETA;
|
||||
qDebug("Deleting the session");
|
||||
delete s;
|
||||
qDebug("BTSession destructor OUT");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user