aboutsummaryrefslogtreecommitdiff
path: root/libgui/gui.c
diff options
context:
space:
mode:
authorMarvin Borner2021-01-09 22:29:05 +0100
committerMarvin Borner2021-01-09 22:29:05 +0100
commitf27a5f8af9fc5a16b80a7d6646e44d718b0efd7d (patch)
treea06eb447cf8452245e7c8f851b17e07e0f4dcb2c /libgui/gui.c
parentdcd28d5246eec562c195fba07c7bd4ce7b69c94b (diff)
Finding memory leaks is SO exhausting argh
Diffstat (limited to 'libgui/gui.c')
-rw-r--r--libgui/gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgui/gui.c b/libgui/gui.c
index afbc3ba..b675586 100644
--- a/libgui/gui.c
+++ b/libgui/gui.c
@@ -465,6 +465,7 @@ struct element *gui_add_text_input(struct element *container, int x, int y, u32
((struct element_text_input *)text_input->data)->x = x;
((struct element_text_input *)text_input->data)->y = y;
((struct element_text_input *)text_input->data)->width = width;
+ ((struct element_text_input *)text_input->data)->text[0] = '\0';
((struct element_text_input *)text_input->data)->color_fg = color_fg;
((struct element_text_input *)text_input->data)->color_bg = color_bg;
((struct element_text_input *)text_input->data)->font_type = font_type;
@@ -590,6 +591,7 @@ void gui_event_loop(struct element *container)
break;
}
}
+
free(msg);
}