diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-04-14 10:43:57 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-04-16 12:53:29 +0000 |
commit | a54eb316af7921ff77d4419c8b11b31f8e6fac7b (patch) | |
tree | 59752ad0e9872e2b36cd7be09d8c431d1aa699e8 /.gitignore | |
parent | 1edf84eff083eb5412b4c5c7cd3bd8166f15f61f (diff) | |
download | qtquickcontrols-a54eb316af7921ff77d4419c8b11b31f8e6fac7b.tar.gz |
Create the decoration component when it is needed
If multiple QQmlEngines are created and use a Dialog,
initalizeEngine will be called more than once and therefore recreates
the QQuickAbstractDialog::m_decorationComponent without deleting the
original. Therefore we keep the decoration component url instead, and
create the decoration component on demand. This ensures that
it keeps the component relevant for the QQmlEngine and stops the
memory leak from before as well.
Fixes: QTBUG-75149
Change-Id: Ic79103f42d092d39b46868a45b4099ddc6edf9db
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions