diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-07-15 23:02:34 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-07-19 04:52:28 +0000 |
| commit | 69d767bec265587a5645a08f14bb7e7540f01867 (patch) | |
| tree | 8dbffdd417b42bd96a957f3e5ec8e9253e4c47ce /src/corelib/thread/qfutureinterface.cpp | |
| parent | 74707948652d1b251b2296ce0b3a515b2ddbcc08 (diff) | |
tst_QHostInfo: fix mem-leaks in threadSafetyAsynchronousAPI()
Allocate participating threads and objects on the stack, not the heap.
As a drive-by, port from QList to C arrays (never use a
dynamically-sized container for statically-sized data™).
Code predates the public history, all active branches are affected.
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: If8def658c1c7b505074938d637e78ad2d1f9fd57
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
