aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-10-08 22:25:25 +0200
committerThomas White <taw@bitwiz.org.uk>2015-10-08 22:25:25 +0200
commit6f232a6d35b3d49e9da30652b8fb7714f11366a6 (patch)
tree1d3dd0bf76dc334d026fc63902ab4b624d5e6dac /src/frame.c
parent0afc86411ea04b3b0c259c5f3eb38a2d36fd4489 (diff)
Keep paragraphs around
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index ebd30ce..5b16f32 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -90,6 +90,14 @@ void frame_free(struct frame *fr)
}
free(fr->lines);
+ /* Free paragraphs */
+ if ( fr->paragraphs != NULL ) {
+ for ( i=0; i<fr->n_paragraphs; i++ ) {
+ free(fr->paragraphs[i]->boxes);
+ free(fr->paragraphs[i]);
+ }
+ free(fr->paragraphs);
+ }
/* Free unwrapped boxes */
if ( fr->boxes != NULL ) {
free(fr->boxes->boxes);