diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2017-12-10 14:54:32 +0200 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@qt.io> | 2017-12-11 13:39:55 +0000 |
commit | 43d016bad29677ccb984e600fc5a29af80548f42 (patch) | |
tree | c2ea0047cc7e35d64799028d716bc8478b106193 | |
parent | 29e394792d4414e61e2ce7907e04cc23cbc37efc (diff) |
Fix crash when httpReadyRead is signaled after shutdown
Task-number: QTIFW-1064
Change-Id: Id300f5838fb5f7e72a5e77415ac1832faa2d7c84
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r-- | src/libs/kdtools/filedownloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/kdtools/filedownloader.cpp b/src/libs/kdtools/filedownloader.cpp index 2732e4980..9add48563 100644 --- a/src/libs/kdtools/filedownloader.cpp +++ b/src/libs/kdtools/filedownloader.cpp @@ -1275,6 +1275,8 @@ KDUpdater::HttpDownloader *KDUpdater::HttpDownloader::clone(QObject *parent) con void KDUpdater::HttpDownloader::httpReadyRead() { + if (d->http == 0) + return; static QByteArray buffer(16384, '\0'); while (d->http->bytesAvailable()) { const qint64 read = d->http->read(buffer.data(), buffer.size()); |