mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Fix tiny memory leak
This commit is contained in:
parent
18f460db6f
commit
1eac755bc3
|
@ -90,6 +90,7 @@ static void LoadBitRegister(CBlockFile *SaveState, Util::BitRegister *reg)
|
||||||
char *str = new char[size];
|
char *str = new char[size];
|
||||||
SaveState->Read(str, size);
|
SaveState->Read(str, size);
|
||||||
reg->Set(str);
|
reg->Set(str);
|
||||||
|
delete [] str;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CJTAG::SaveState(CBlockFile *SaveState)
|
void CJTAG::SaveState(CBlockFile *SaveState)
|
||||||
|
|
Loading…
Reference in a new issue