Mercurial > repos > blastem
diff blastem.c @ 1593:24508cb54f87
Fix a number of other memory errors (mostly leaks again) identified by valgrind
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Jun 2018 09:27:05 -0700 |
parents | 31effaadf877 |
children | 360d5bab199f |
line wrap: on
line diff
--- a/blastem.c Fri Jun 22 23:10:27 2018 -0700 +++ b/blastem.c Thu Jun 28 09:27:05 2018 -0700 @@ -389,6 +389,7 @@ game_system->next_context = menu_system; setup_saves(&cart, &info, game_system); update_title(info.name); + free(info.name); } int main(int argc, char ** argv) @@ -620,6 +621,7 @@ setup_saves(&cart, &info, current_system); update_title(info.name); + free(info.name); if (menu) { menu_system = current_system; } else {