From 172cdc1f491ce753d8dbda90ced488cfcb952ff1 Mon Sep 17 00:00:00 2001 From: radius Date: Sun, 14 Feb 2016 15:39:54 -0500 Subject: [PATCH] remove more unused code and deinit properly --- menu/drivers/wimp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/menu/drivers/wimp.c b/menu/drivers/wimp.c index 40019b8dd5..359abf54d2 100644 --- a/menu/drivers/wimp.c +++ b/menu/drivers/wimp.c @@ -429,11 +429,6 @@ static void device_draw(struct device *dev, struct zr_context *ctx, int width, i glDisable(GL_SCISSOR_TEST); } -static void error_callback(int error, const char *description) -{ - fprintf(stderr, "Error %d: %s\n", error, description); -} - static void* mem_alloc(zr_handle unused, size_t size) {UNUSED(unused); return calloc(1, size);} static void mem_free(zr_handle unused, void *ptr) @@ -1533,6 +1528,12 @@ static void wimp_free(void *data) if (!wimp) return; + + + free(font.glyphs); + zr_free(&gui.ctx); + zr_buffer_free(&device.cmds); + device_shutdown(&device); gfx_coord_array_free(&wimp->list_block.carr);