aboutsummaryrefslogtreecommitdiff
path: root/tests/render_test_sc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/render_test_sc1.c')
-rw-r--r--tests/render_test_sc1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c
index f84c13a..63c59d7 100644
--- a/tests/render_test_sc1.c
+++ b/tests/render_test_sc1.c
@@ -77,10 +77,8 @@ int main(int argc, char *argv[])
gtk_init(&argc, &argv);
- fr = calloc(1, sizeof(struct frame));
+ fr = frame_new();
if ( fr == NULL ) return 1;
- fr->children = NULL;
- fr->num_children = 0;
fr->scblocks = sc_parse(sc);
if ( fr->scblocks == NULL ) {
fprintf(stderr, "SC parse failed.\n");