aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decorations.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decorations.c b/decorations.c
index 160fb73..1078650 100644
--- a/decorations.c
+++ b/decorations.c
@@ -39,6 +39,7 @@ void deco_text_free(struct deco_text* deco) {
deco->prev->next = deco->next;
if(deco->next)
deco->next->prev = deco->prev;
+ if(deco == start_text) start_text = deco->next;
free(deco->text);
free(deco);
}
Jeremias Stotters git repositories generated by CGIT