fix memory leak in replay menu
This commit is contained in:
parent
837c02c791
commit
57e70931ad
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ static void replayview_logic(MenuData *m) {
|
|||
if(sm->state == MS_Dead) {
|
||||
if(ctx->sub_fade == 1.0) {
|
||||
destroy_menu(sm);
|
||||
free(sm);
|
||||
ctx->submenu = NULL;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue