diff --git a/tests/controls/spinctrltest.cpp b/tests/controls/spinctrltest.cpp index e4c94e313e..bc1b994bf9 100644 --- a/tests/controls/spinctrltest.cpp +++ b/tests/controls/spinctrltest.cpp @@ -338,6 +338,8 @@ TEST_CASE_METHOD(SpinCtrlTestCase3, "SpinCtrl::SetValueInsideEventHandler", "[sp CHECK(m_spin->GetValue() == 32); } + + delete text; #endif // wxUSE_UIACTIONSIMULATOR }