ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVInstance.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVInstance.cs (file contents):
Revision 44 by william, Fri Mar 8 03:36:44 2013 UTC vs.
Revision 45 by william, Fri Mar 8 03:41:18 2013 UTC

--- 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 @@ using libxmltv.Interfaces;
 
 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 @@ namespace libxmltv.Core
         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; }
     }