From 11b2c632a11136f3550f900ffcaa127e38b17801 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 26 May 2015 14:34:38 -0700 Subject: [PATCH] Delete widgets Otherwise they end up referencing deleted Facts on link disconnect --- src/FactSystem/FactSystemTestBase.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FactSystem/FactSystemTestBase.cc b/src/FactSystem/FactSystemTestBase.cc index 0188c9228..2e9ac9122 100644 --- a/src/FactSystem/FactSystemTestBase.cc +++ b/src/FactSystem/FactSystemTestBase.cc @@ -129,6 +129,8 @@ void FactSystemTestBase::_qml_test(void) QVariant qmlValue = control->property("text").toInt(); QCOMPARE(qmlValue.toInt(), 3); + + delete widget; } /// Test QML getting an updated Fact value @@ -153,5 +155,7 @@ void FactSystemTestBase::_qmlUpdate_test(void) QObject* control = rootObject->findChild("testControl"); QVERIFY(control != NULL); QCOMPARE(control->property("text").toInt(), 12); + + delete widget; } -- 2.22.0