summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code/code.pro
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2024-08-28 11:33:07 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2024-08-28 19:01:40 +0200
commit5028ff12d61cfb5d50d9854ca0e00c4862de4685 (patch)
tree0082a51d3733617de87fbb47a381c99b2c8b7c3b /src/sql/doc/snippets/code/code.pro
parent65fecd0c47d6ff39e8a728b0c6538d44f3aa00aa (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/code/code.pro')
0 files changed, 0 insertions, 0 deletions