aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 6389905..8918bc9 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -921,6 +921,15 @@ int wrap_contents(struct frame *fr)
fr->trouble = 0;
alloc_lines(fr);
+ for ( i=0; i<fr->n_paragraphs; i++ ) {
+ bv_free(fr->paragraphs[i]);
+ }
+ free(fr->paragraphs);
+ free(fr->paragraph_start_lines);
+ for ( i=0; i<fr->n_lines; i++ ) {
+ wrap_line_free(&fr->lines[i]);
+ }
+
/* Split text into paragraphs */
i = 0;
fr->n_paragraphs = 0;