C64: fix unmanaged memory leak in most recent commit
This commit is contained in:
parent
1b83110a37
commit
6f6ee16cf3
|
@ -85,7 +85,14 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
};
|
||||
|
||||
// framework
|
||||
public void Dispose() { }
|
||||
public void Dispose()
|
||||
{
|
||||
if (board.sid != null)
|
||||
{
|
||||
board.sid.Dispose();
|
||||
board.sid = null;
|
||||
}
|
||||
}
|
||||
|
||||
// process frame
|
||||
public void FrameAdvance(bool render, bool rendersound)
|
||||
|
|
Loading…
Reference in New Issue