Fix leaking ThumbnailGenerators

Authored by sandsmark on Mar 27 2020, 1:42 PM.

Description

Fix leaking ThumbnailGenerators

The logic for deleting ThumbnailGenerators was kind of broken, so fix
that.

Not sure if this is the right approach, but it doesn't seem racy (and
can't trigger any races), and doesn't leak anymore.

Test Plan: Run with asan and ubsan, open folders with many thumbnails,
scroll around.

Reviewed By: ngraham

Differential Revision: https://phabricator.kde.org/D28346

Details

Committed
sandsmarkApr 19 2020, 2:46 PM
Reviewer
ngraham
Differential Revision
D28346: Fix leaking ThumbnailGenerators
Parents
R260:2f48c6267095: Fix undefined behavior by calling on almost destroyed object
Branches
Unknown
Tags
Unknown