mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix leak of network replies when network content is fetched in a thread
which is destroyed soon after Because the thread is destroyed, the event loops never executes and deleteLater is never called, resulting the a leak of the network reply
This commit is contained in:
parent
78cea71e00
commit
723e62ecd1
@ -31,10 +31,7 @@ QgsNetworkContentFetcher::~QgsNetworkContentFetcher()
|
||||
//cancel running request
|
||||
mReply->abort();
|
||||
}
|
||||
if ( mReply )
|
||||
{
|
||||
mReply->deleteLater();
|
||||
}
|
||||
delete mReply;
|
||||
}
|
||||
|
||||
void QgsNetworkContentFetcher::fetchContent( const QUrl &url, const QString &authcfg )
|
||||
|
Loading…
x
Reference in New Issue
Block a user