[DVDnav-discuss] r1004 - trunk/libdvdnav/src/dvdread/dvd_udf.c

nicodvb subversion at mplayerhq.hu
Sat Apr 19 11:19:24 CEST 2008


Author: nicodvb
Date: Sat Apr 19 11:19:24 2008
New Revision: 1004

Log:
set cached_dir_base=NULL after free()ing it; patch by Erik Hovland - erik hovland org

Modified:
   trunk/libdvdnav/src/dvdread/dvd_udf.c

Modified: trunk/libdvdnav/src/dvdread/dvd_udf.c
==============================================================================
--- trunk/libdvdnav/src/dvdread/dvd_udf.c	(original)
+++ trunk/libdvdnav/src/dvdread/dvd_udf.c	Sat Apr 19 11:19:24 2008
@@ -562,6 +562,7 @@ static int UDFScanDir( dvd_reader_t *dev
 	cached_dir = (uint8_t *)(((uintptr_t)cached_dir_base & ~((uintptr_t)2047)) + 2048);
 	if( DVDReadLBUDF( device, lbnum, dir_lba, cached_dir, 0) <= 0 ) {
 	  free(cached_dir_base);
+	  cached_dir_base = NULL;
 	  cached_dir = NULL;
 	}
 	/*



More information about the DVDnav-discuss mailing list