diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 16:52:21 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-03-23 13:10:52 +0000 |
commit | 2fc0053eee7ee9881c0dd95c524d1fe05f89e5d5 (patch) | |
tree | b6ea152400439127776a1cf16507210e1c72dd6b /src/quick/items/qquickabstractpaletteprovider_p.h | |
parent | 1833aa049d048d7148bf1cd350f6cd4cf5ec8f3b (diff) |
QQuickItemAnimation: close potential memory leak
Fix static analyzer warning bff6cb4333f531d5a72f7bf6dc1485f6.
If ownership of viaData is not passed to the viaAction, then the object
might be leaked. Use std::unique_ptr to make ownership transfer explicit
and implicitly delete unowned objects.
Change-Id: I89f2a6b630941a98a74db302bc1ab08055c71974
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 78aea267209c34abeb4895712dc76c923aa46165)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/qquickabstractpaletteprovider_p.h')
0 files changed, 0 insertions, 0 deletions