diff options
Diffstat (limited to 'src/mgui/label.c')
-rw-r--r-- | src/mgui/label.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mgui/label.c b/src/mgui/label.c index e67821d..767297c 100644 --- a/src/mgui/label.c +++ b/src/mgui/label.c @@ -21,6 +21,12 @@ mgui_label* mgui_label_create(const char *str, size_t size, unsigned char charac return label; } +void mgui_label_destroy(mgui_label *label) { + mgl_text_deinit(&label->text); + mgui_free(label->str); + mgui_free(label); +} + mgui_widget* mgui_label_to_widget(mgui_label *list) { return &list->widget; } |