From 396686a09ef471499c11256b8516c2702f761060 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 8 Dec 2021 04:16:34 +0100 Subject: Destroy widgets --- src/mgui/image.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mgui/image.c') diff --git a/src/mgui/image.c b/src/mgui/image.c index a3b163e..c2ff12f 100644 --- a/src/mgui/image.c +++ b/src/mgui/image.c @@ -18,6 +18,10 @@ mgui_image* mgui_image_create(const char *filepath) { return image; } +void mgui_image_destroy(mgui_image *image) { + mgui_free(image); +} + mgui_widget* mgui_image_to_widget(mgui_image *list) { return &list->widget; } -- cgit v1.2.3