aboutsummaryrefslogtreecommitdiff
path: root/decorations.c
diff options
context:
space:
mode:
authorJeremias Stotter <jeremias@stotter.eu>2022-11-27 21:17:02 +0100
committerJeremias Stotter <jeremias@stotter.eu>2022-11-27 21:17:02 +0100
commit2ac1e7a764bf7fea9959b507c58956d090160ddc (patch)
tree25e1c7369a181fe592b4bdd6b9ba8cb5abd11d1d /decorations.c
parent1f05d273fb169876bfa8000d2a257a1d5d665e7c (diff)
downloadnetwork-simulator-2ac1e7a764bf7fea9959b507c58956d090160ddc.tar.gz
network-simulator-2ac1e7a764bf7fea9959b507c58956d090160ddc.tar.bz2
network-simulator-2ac1e7a764bf7fea9959b507c58956d090160ddc.zip
Set start_text correctly when it is freed
Diffstat (limited to 'decorations.c')
-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