/[EmuXPortal]/trunk/EmuXPortal/Api/EmuConfig.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/EmuConfig.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Api/EmuConfig.cs	2012/08/22 02:12:46	104
+++ trunk/EmuXPortal/Api/EmuConfig.cs	2012/08/22 02:36:47	105
@@ -9,7 +9,7 @@
 
 namespace EmuXPortal.Api
 {
-    public interface IEmuConfig : IComparable<IEmuConfig>
+    public interface IEmuConfig : IComparable<IEmuConfig>, IDisposable
     {
         string ConfigPath { get; }
         string PlatformNameShort { get; }
@@ -78,7 +78,7 @@
         #endregion
 
         #region private class EmuConfig : IEmuConfig
-        private class EmuConfig : IEmuConfig, IComparable<IEmuConfig>
+        private class EmuConfig : IEmuConfig, IComparable<IEmuConfig>, IDisposable
         {
             public IEmuConfig Create(string rom_path) { return this.Create(string.Empty, rom_path); }
             public IEmuConfig Create(string config_path, string rom_path)
@@ -339,6 +339,12 @@
                 this.Create(EmuRomPath);
             }
             #endregion
+
+            public void Dispose()
+            {
+                if (this.PlatformImage != null)
+                    this.PlatformImage.Dispose();
+            }
         }
         #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22