xmltv/grab/uk_tvguide tv_grab_uk_tvguide,1.21,1.22

Geoff <[email protected]> Thu, 16 Feb 2017 13:03:33 +0000
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv/grab/uk_tvguide
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26892

Modified Files:
	tv_grab_uk_tvguide 
Log Message:
Prevent memory leak with older versions TreeBuilder (credit Mike Parker) (patches #100)

Index: tv_grab_uk_tvguide
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/uk_tvguide/tv_grab_uk_tvguide,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** tv_grab_uk_tvguide	22 Jan 2017 22:01:26 -0000	1.21
--- tv_grab_uk_tvguide	16 Feb 2017 13:03:31 -0000	1.22
***************
*** 273,280 ****
  
  							# Fetch the page
! 							#   my $treedetail = XMLTV::Get_nice::get_nice_tree($url);
! 							my $treedetail = fetch_url($url);
! 							
! 							my $showdetail = $treedetail;						
  							#	$showdetail->dump;
  							
--- 273,278 ----
  
  							# Fetch the page
! 							#   my $showdetail = XMLTV::Get_nice::get_nice_tree($url);
! 							my $showdetail = fetch_url($url);					
  							#	$showdetail->dump;
  							
***************
*** 415,418 ****
--- 413,418 ----
  								
  							}	# end showdetail
+ 
+ 							$showdetail->delete();
  						}
  								
***************
*** 633,636 ****
--- 633,638 ----
  				}
  
+ 
+ 				$tree->delete();
  				$bar->update if defined $bar;
  			}


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot