Merge branch 'dev/code' into develop

This commit is contained in:
Jari Vetoniemi 2014-03-28 21:41:05 +02:00
commit ae23d48579

View File

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