aboutsummaryrefslogtreecommitdiff
path: root/src/mgui/image.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-08 04:16:34 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-08 04:16:34 +0100
commit396686a09ef471499c11256b8516c2702f761060 (patch)
tree9215d37141ae1d387fb38dd69e5dd36466012531 /src/mgui/image.c
parent319accba370d3f0872501de6386833fea140fbac (diff)
Destroy widgets
Diffstat (limited to 'src/mgui/image.c')
-rw-r--r--src/mgui/image.c4
1 files changed, 4 insertions, 0 deletions
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;
}