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

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

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

--- trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 14:28:57	110
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 15:37:16	111
@@ -161,6 +161,7 @@
                             var ctors = type.GetConstructors(flags);
                             bool has_default_ctor = false;
                             foreach (var ctor in ctors) { if (ctor.GetParameters().Count() == 0) { has_default_ctor = true; } }
+                            ctors = null;
                             if (!has_default_ctor) { continue; }
                             raw_instance = Activator.CreateInstance(type, flags, null, new object[0], culture);
                             if (raw_instance != null)
@@ -169,13 +170,25 @@
                                 if (handler_value != null && handler_value.ToString() == node.Name.ToString())
                                 {
                                     handler_type = type;
+                                    handler_value = null;
+                                    raw_instance = null;
+                                    handler_prop = null;
+                                    iface = null;
                                     break;
                                 }
+                                handler_value = null;
                             }
+                            raw_instance = null;
                         }
+                        handler_prop = null;
                     }
+                    iface = null;
                 }
             }
+            t = null;
+            asm = null;
+            types = null;
+            classes = null;
             if (handler_type == null)
             {
                 try
@@ -201,6 +214,10 @@
                 }
                 catch (Exception ex) { throw ex; }
             }
+            raw_instance = null;
+            flags = 0;
+            culture = null;
+            node = null;
         }
 
 
@@ -234,6 +251,7 @@
                     }
                     
                 }
+                node = null;
             }
         }
         #endregion
@@ -250,6 +268,7 @@
                     instance.MetaData.AddProperty(XMLTVConstants.Programs.ProgramTitle, node.Value);
                     xmltv_logger.Verbose.Debug.WriteLine("\tprogram_title: {0}", node.Value);
                 }
+                node = null;
             }
         }
         #endregion
@@ -266,6 +285,7 @@
                     instance.MetaData.AddProperty(XMLTVConstants.Programs.ProgramSubTitle, node.Value);
                     xmltv_logger.Verbose.Debug.WriteLine("\tprogram_subtitle: {0}", node.Value);
                 }
+                node = null;
             }
         }
         #endregion
@@ -282,6 +302,7 @@
                     instance.MetaData.AddProperty(XMLTVConstants.Programs.ProgramDescription, node.Value);
                     xmltv_logger.Verbose.Debug.WriteLine("\tprogram_description: {0}", node.Value);
                 }
+                node = null;
             }
         }
         #endregion
@@ -303,7 +324,9 @@
                     ExtraMetaData data = new ExtraMetaData(node);
                     list.Add(data);
                     instance.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData] = list;
+                    data = null;
                 }
+                node = null;
             }
         }       
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22