mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Copy picture struct for worker thread
This copies the picture struct when delegating image handling to a worker thread to prevent a crashe when main thread frees the picture upon selecting a different dive. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2368f3371b
commit
2639281354
5 changed files with 36 additions and 8 deletions
|
|
@ -11,6 +11,7 @@ class ImageDownloader : public QObject {
|
|||
Q_OBJECT;
|
||||
public:
|
||||
ImageDownloader(struct picture *picture);
|
||||
~ImageDownloader();
|
||||
void load();
|
||||
private:
|
||||
struct picture *picture;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue