aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-03-19 18:02:29 +0100
committerThomas White <taw@bitwiz.org.uk>2016-03-19 18:02:29 +0100
commit12e76ff1df47fa47a8b1458e4cacb309249737f2 (patch)
tree08d4ede966a8613f453db8eb30e37ed1f78f7541 /src/wrap.c
parent17696106b37a1438845dc82fa2ec8734e92dafe2 (diff)
Deletion stuff
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;