diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-11 22:45:22 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-11 22:45:46 +0200 |
commit | 71e298fd373d5afea429b88f83b8be677e1e2c83 (patch) | |
tree | 177901cf38204942f05270458784f2ea32dcefeb /src/sc_interp.c | |
parent | 59c8ad0d099c1fdefcf7676458b70ecaf98f5fc9 (diff) |
Factorise rendering pipeline a bit
Diffstat (limited to 'src/sc_interp.c')
-rw-r--r-- | src/sc_interp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c index c5f25d1..e6f5680 100644 --- a/src/sc_interp.c +++ b/src/sc_interp.c @@ -563,12 +563,7 @@ static int check_outputs(SCBlock *bl, SCInterpreter *scin) struct frame *fr = sc_block_frame(bl); - if ( fr != NULL ) { - free(fr->boxes->boxes); - free(fr->boxes); - fr->boxes = malloc(sizeof(struct wrap_line)); - initialise_line(fr->boxes); - } + renew_frame(fr); if ( fr == NULL ) { fr = add_subframe(sc_interp_get_frame(scin)); |