aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/deleteLaterObjectMethodCall.qml
blob: d1418e57a11e42538140b25f4d4d0a85aacbc8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import QtQuick 2.0
import Qt.test 1.0

QtObject {
    property var fn

    property var c: Component {
        MyQmlObject {
            function go() {
                try { methodNoArgs(); } catch(e) { }
            }
        }
    }

    Component.onCompleted: {
        var f = c.createObject().go;

        gc();

        f();
    }
}