From c609e4025e9de5c5784e0210a11e34a5a06d7626 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 28 Mar 2014 21:40:46 +0200 Subject: [PATCH] Release renderer in bmMenuFree function. --- lib/bemenu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bemenu.c b/lib/bemenu.c index a2caa13..d4ae77e 100644 --- a/lib/bemenu.c +++ b/lib/bemenu.c @@ -36,6 +36,10 @@ bmMenu* bmMenuNew(bmDrawMode drawMode) void bmMenuFree(bmMenu *menu) { assert(menu != NULL); + + if (menu->renderApi.free) + menu->renderApi.free(); + free(menu); }