diff options
author | Val Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-03-04 10:53:17 +0100 |
---|---|---|
committer | Aapo Keskimolo <aapo.keskimolo@qt.io> | 2019-03-11 17:02:06 +0000 |
commit | a84acc963b6684e4aa91c4dff5acf47e5f6cd8d2 (patch) | |
tree | 3db9ca10a16b5052a2f206edfc7a87e8162b2783 /src/qml/compiler/qv4codegen.cpp | |
parent | c911349b8bdcc7f798091eb6acd20395883b2000 (diff) | |
download | qtdeclarative-a84acc963b6684e4aa91c4dff5acf47e5f6cd8d2.tar.gz |
Fix leaking of QML QQuickItemGrabResult objects
If QQuickItem::grabToImage is called from QML,
QQuickItemGrabResult is created but was never deleted.
Adding a deleteLater() right after dispatching the callback
ensures that QQuickItemGrabResult objects are deleted.
Task-number: QTBUG-73723
Change-Id: Ifda85599098f2b679ae5f22e1d47a73962ed0a85
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions