diff --git a/mednafen/mednafen.cpp b/mednafen/mednafen.cpp index f1a7437..983f2dd 100644 --- a/mednafen/mednafen.cpp +++ b/mednafen/mednafen.cpp @@ -352,11 +352,11 @@ void MDFNI_CloseGame(void) MDFN_FlushGameCheats(0); MDFNGameInfo->CloseGame(); + if(MDFNGameInfo->name) - { free(MDFNGameInfo->name); - MDFNGameInfo->name = NULL; - } + MDFNGameInfo->name = NULL; + MDFNMP_Kill(); MDFNGameInfo = NULL;