diff options
-rw-r--r-- | src/main-menu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main-menu.c b/src/main-menu.c index f1a3830..4a46380 100644 --- a/src/main-menu.c +++ b/src/main-menu.c @@ -127,6 +127,7 @@ db_main_menu(void) } /* Find games */ + games = NULL; n = db_games_find(games_dir, &games); buttons = calloc(n + 2, sizeof(*buttons)); if (buttons == NULL) { @@ -251,12 +252,6 @@ db_main_menu(void) SDL_Delay(1000); err: - if (n > 0) { - for (i = 0; i < n; ++i) { - db_game_free(games[i]); - } - free(games); - } free(font_path); TTF_CloseFont(font); } |