diff --git a/libs/models/test/testclip.c b/libs/models/test/testclip.c index ace754872..b860da690 100644 --- a/libs/models/test/testclip.c +++ b/libs/models/test/testclip.c @@ -308,6 +308,8 @@ run_test (test_t *test) p->portal->winding->points[j][2] = bound (-8192, p->portal->winding->points[j][2], 8192); } + FreeWinding (p->portal->edges); + p->portal->edges = WindingVectors (p->portal->winding, 0); for (j = 0; j < 2; j++) { int found = 0;