diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-04-28 14:25:53 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-05-02 09:40:02 +0200 |
| commit | d5113384c9ef9a3b01a856b7317d7d756023af91 (patch) | |
| tree | 27d1f8e0da60335d930650c205edd67fc369043a /src/testlib/doc/snippets/code | |
| parent | b41b1a3f6ffb51a9c62cbe49ff2b7fc6a6af62cc (diff) | |
AppleUnifiedLogger: Remove manually managed os_log_t cache
The os_log_create API documents that the logging subsystem will
maintain a global list of logs, and will return existing logs
for subsequent calls for the same category and subsystem, so
we don't need to maintain our own log.
This also avoids a crash were we would end up in the logging
backend during application shutdown, when destructor functions
run, for example via QLibraryStore::cleanup().
In this case local static such as our log cache had already been
destroyed, leading to use after free.
Pick-to: 6.2 6.3 5.15
Change-Id: I91abfef6c56f8ca6dd8d602ac83aa163ce3d6860
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
