diff options
| author | Mårten Nordheim <marten.nordheim@qt.io> | 2024-08-28 11:33:07 +0200 |
|---|---|---|
| committer | Mårten Nordheim <marten.nordheim@qt.io> | 2024-08-28 19:01:40 +0200 |
| commit | 5028ff12d61cfb5d50d9854ca0e00c4862de4685 (patch) | |
| tree | 0082a51d3733617de87fbb47a381c99b2c8b7c3b /src/sql/doc/snippets/sqldatabase | |
| parent | 65fecd0c47d6ff39e8a728b0c6538d44f3aa00aa (diff) | |
Font: Fix potential use-after-free
The detach() call might deallocate the d-ptr we already
cached in the Q_D call, so move the Q_D call to after
detach()ing.
Even if it was not deallocated, as long as it was previously
shared, we would assign to the wrong private.
Change-Id: I9643ad72a7c7934cba9807220a9cf6c53c66ab13
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions
