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:
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user