add missing Dispose() for Citra ctor failure case

This commit is contained in:
CasualPokePlayer 2023-07-29 16:26:29 -07:00
parent 0a72dc046f
commit 33f1c5472a
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.N3DS
// doesn't make sense if not a CIA
if (lp.Roms[i].Extension.ToLowerInvariant() != ".cia")
{
Dispose();
throw new("ROMs after the index 0 should be CIAs");
}