diff options
| author | Andrei Golubev <andrei.golubev@qt.io> | 2022-06-10 15:06:35 +0200 |
|---|---|---|
| committer | Andrei Golubev <andrei.golubev@qt.io> | 2022-06-15 09:43:01 +0200 |
| commit | 48ae7468afc06d52844badb3f5f41114f67a360f (patch) | |
| tree | cc02e5a4df41edd6d49dc068f88a4f643a1e1aab /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | b68aa525883ca9ca8e007de3c5b5177fc49af5f4 (diff) | |
Fix QQmlTypePrivate memory leak in qmltc-generated types with extensions
Apparently registering the QQmlTypePrivate for a meta-object is not
good enough. Somehow clang's ASan failed to discover a memory leak but
gcc's ASan did not. After carefully exercising the code and a bit of
debugging, turns out we indeed not release manually created
QQmlTypePrivate objects. Do release the QQmlTypePrivate correctly now
In the process of doing so, remove now-redundant QMetaObject function
parameter
Amends 26179e693717535eeff2e7b2a6ee99dc02dcd8f9
Pick-to: 6.4
Change-Id: Ia0c808cd8a09cf996672bca9953108facfdf5d4e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
0 files changed, 0 insertions, 0 deletions
