summaryrefslogtreecommitdiffstats
path: root/src/corelib/mimetypes/qmimetype.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-01-24 15:57:07 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-26 13:10:21 +0000
commit8bdc5f7b78d27bb01d4044b47a4286fe4c2669c2 (patch)
treeec9ec848017c62c56950009de46f17ca0a9f8a09 /src/corelib/mimetypes/qmimetype.cpp
parent522d0d3a026bc93c36c8f6c3e1f13191d21238ae (diff)
Fix memory leak in QtConcurrent::run when called with a NULL QThreadPool
QThreadPool automatically deletes the runnable after it finishes running the task. In case QThreadPool is nullptr, we should delete the runnable manually. This amends 87b93c29be02f0a7ff9424b5e2b6431e20bd4c40. Change-Id: Id7e4ed3d4d6de05990edf62e4099852983debc64 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 4cd8eeaf8c6a05f09bdbc92690b63f5233abdad0) Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/mimetypes/qmimetype.cpp')
0 files changed, 0 insertions, 0 deletions