diff --git a/test/controls.c b/test/controls.c index b4bb5309..4dbda774 100644 --- a/test/controls.c +++ b/test/controls.c @@ -70,14 +70,13 @@ static const struct { testingTest(ControlErrors) { struct checkControlErrorsParams p; - uiControlVtable vtable; uiControlVtable vtableBadSize; size_t i; memset(&p, 0, sizeof (struct checkControlErrorsParams)); p.namePlaceholder = "name"; - createTestVtable(&vtable); - p.vtablePlaceholder = &vtable; + p.vtablePlaceholder = allocVtable(t); + testingTDefer(t, deferFree, p.vtablePlaceholder); // TODO osVtablePlaceholder p.implDataSizePlaceholder = sizeof (struct testImplData); memset(&vtableBadSize, 0, sizeof (uiControlVtable));