/[xmltv_parser]/trunk/libxmltv/Core/XMLTVInstance.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVInstance.cs

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

--- trunk/libxmltv/Core/XMLTVInstance.cs	2013/03/08 03:36:44	44
+++ trunk/libxmltv/Core/XMLTVInstance.cs	2013/03/08 03:41:18	45
@@ -6,10 +6,15 @@
 
 namespace libxmltv.Core
 {
-    internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance, IDisposable
+    internal class XMLTVRuntimeInstance : MarshalByRefObject, IXMLTVRuntimeInstance
     {
         public XMLTVRuntimeInstance(string xmlfile) { CreateInstance(xmlfile); }
-        private void CreateInstance(string xmlfile) { Instance = new XMLTVInstance(xmlfile, this); }
+        private void CreateInstance(string xmlfile) 
+        {
+            using (Instance = new XMLTVInstance(xmlfile, this))
+            {
+            }
+        }
         internal XMLTVInstance Instance { get; private set; }
 
         #region IXMLTV_LOADER members
@@ -22,11 +27,11 @@
         public Dictionary<int, IXMLTVProgram> Programs { get; set; }
         #endregion   
     
-        public void Dispose()
-        {
-            IsDisposing = true;
-            //throw new NotImplementedException();
-        }
+        //public void Dispose()
+        //{
+        //    IsDisposing = true;
+        //    //throw new NotImplementedException();
+        //}
         public bool IsDisposing { get; private set; }
     }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22