C64: fix unmanaged memory leak in most recent commit

This commit is contained in:
goyuken 2012-12-08 16:07:06 +00:00
parent 1b83110a37
commit 6f6ee16cf3
1 changed files with 8 additions and 1 deletions

View File

@ -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)