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

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

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

--- trunk/EmuXPortal/Api/RomParser.cs	2012/08/22 02:12:46	104
+++ trunk/EmuXPortal/Api/RomParser.cs	2012/08/22 02:36:47	105
@@ -9,7 +9,7 @@
 
 namespace EmuXPortal.Api
 {
-    public class RomParser
+    public class RomParser :IDisposable
     {
         private IEmuConfig Config { get; set; }
         public RomParser(IEmuConfig config)
@@ -78,5 +78,12 @@
             public IEmuConfig RomConfig { get; private set; }
             #endregion
         }
+
+        public void Dispose()
+        {
+            Roms.ForEach(x => x.Dispose());
+            Roms.Clear();
+            Roms = null;
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22