diff options
-rw-r--r-- | core/imagedownloader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp index cdaa7fc90..f5bc734b2 100644 --- a/core/imagedownloader.cpp +++ b/core/imagedownloader.cpp @@ -41,6 +41,7 @@ void ImageDownloader::load(bool fromHash){ loop.processEvents(); sleep(1); } + delete reply; } } @@ -69,8 +70,6 @@ void ImageDownloader::saveImage(QNetworkReply *reply) add_hash(imageFile.fileName(), hash.result()); learnHash(picture, hash.result()); } - reply->manager()->deleteLater(); - reply->deleteLater(); // This should be called to make the picture actually show. // Problem is DivePictureModel is not in core. // Nevertheless, the image shows when the dive is selected the next time. |