aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/imagedownloader.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-03-15 21:31:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-16 07:46:28 -0700
commit8a59d78faa4792934a11a774c9dffcd85f0c3340 (patch)
tree5d38fc9d40712e2314759ff05ff0c0b58145fee6 /subsurface-core/imagedownloader.h
parent3c7e14a18fdc2ee9590e591afe4761a2d93881e7 (diff)
downloadsubsurface-8a59d78faa4792934a11a774c9dffcd85f0c3340.tar.gz
When handing off a picture to a worker thread, copy it first
as otherwise we crash when the picture is freed before the worker thread (to load from the net or to compute hashes) is finished Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/imagedownloader.h')
-rw-r--r--subsurface-core/imagedownloader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-core/imagedownloader.h b/subsurface-core/imagedownloader.h
index cd85c9509..2ff68342c 100644
--- a/subsurface-core/imagedownloader.h
+++ b/subsurface-core/imagedownloader.h
@@ -14,6 +14,7 @@ class ImageDownloader : public QObject {
Q_OBJECT;
public:
ImageDownloader(struct picture *picture);
+ ~ImageDownloader();
void load(bool fromHash);
private: