mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -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
|
//cancel running request
|
||||||
mReply->abort();
|
mReply->abort();
|
||||||
}
|
}
|
||||||
if ( mReply )
|
delete mReply;
|
||||||
{
|
|
||||||
mReply->deleteLater();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsNetworkContentFetcher::fetchContent( const QUrl &url, const QString &authcfg )
|
void QgsNetworkContentFetcher::fetchContent( const QUrl &url, const QString &authcfg )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user