From 620437c10d7b7e791bc70126933e0d5f2a87907f Mon Sep 17 00:00:00 2001 From: beirich Date: Sun, 4 Sep 2011 06:28:55 +0000 Subject: [PATCH] pce, dispose disc when core is disposed --- BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs b/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs index db51cbf454..4e1672810b 100644 --- a/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs +++ b/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs @@ -504,6 +504,10 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx public IList MemoryDomains { get { return memoryDomains; } } public MemoryDomain MainMemory { get { return memoryDomains[0]; } } - public void Dispose() {} + public void Dispose() + { + if (disc != null) + disc.Dispose(); + } } }