1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-23 17:32:11 +01:00

Release renderer in bmMenuFree function.

This commit is contained in:
Jari Vetoniemi 2014-03-28 21:40:46 +02:00
parent fa5546d704
commit c609e4025e

@ -36,6 +36,10 @@ bmMenu* bmMenuNew(bmDrawMode drawMode)
void bmMenuFree(bmMenu *menu)
{
assert(menu != NULL);
if (menu->renderApi.free)
menu->renderApi.free();
free(menu);
}