diff options
Diffstat (limited to 'src/glut/fbdev/menu.c')
-rw-r--r-- | src/glut/fbdev/menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glut/fbdev/menu.c b/src/glut/fbdev/menu.c index f5a5ef75434..4ab4eb30d46 100644 --- a/src/glut/fbdev/menu.c +++ b/src/glut/fbdev/menu.c @@ -25,6 +25,8 @@ */ #include <stdlib.h> +#include <stdio.h> +#include <string.h> #include <linux/fb.h> @@ -69,6 +71,7 @@ void FreeMenus(void) free(Menus[i].Items[j].name); free(Menus[i].Items); } + free(Menus); } @@ -204,7 +207,6 @@ void CloseMenu(void) int glutCreateMenu(void (*func)(int value)) { - MouseEnabled = 1; CurrentMenu = NumMenus; NumMenus++; Menus = realloc(Menus, sizeof(*Menus) * NumMenus); |