mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
Avoid possible crash on exit when the IP filter is enabled
This commit is contained in:
parent
e19a5df968
commit
b03fa32624
@ -407,6 +407,8 @@ protected:
|
|||||||
ruleCount = parseDATFilterFile(filePath);
|
ruleCount = parseDATFilterFile(filePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(abort)
|
||||||
|
return;
|
||||||
try {
|
try {
|
||||||
s->set_ip_filter(filter);
|
s->set_ip_filter(filter);
|
||||||
emit IPFilterParsed(ruleCount);
|
emit IPFilterParsed(ruleCount);
|
||||||
|
@ -161,9 +161,6 @@ QBtSession::~QBtSession() {
|
|||||||
#endif
|
#endif
|
||||||
saveSessionState();
|
saveSessionState();
|
||||||
saveFastResumeData();
|
saveFastResumeData();
|
||||||
qDebug("Deleting the session");
|
|
||||||
delete s;
|
|
||||||
qDebug("Session deleted");
|
|
||||||
// Delete our objects
|
// Delete our objects
|
||||||
if(m_tracker)
|
if(m_tracker)
|
||||||
delete m_tracker;
|
delete m_tracker;
|
||||||
@ -178,6 +175,8 @@ QBtSession::~QBtSession() {
|
|||||||
// HTTP Server
|
// HTTP Server
|
||||||
if(httpServer)
|
if(httpServer)
|
||||||
delete httpServer;
|
delete httpServer;
|
||||||
|
qDebug("Deleting the session");
|
||||||
|
delete s;
|
||||||
qDebug("BTSession destructor OUT");
|
qDebug("BTSession destructor OUT");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user