[DVDnav-discuss] r1012 - trunk/libdvdnav/src/remap.c

nicodvb subversion at mplayerhq.hu
Sat Apr 19 12:34:32 CEST 2008


Author: nicodvb
Date: Sat Apr 19 12:34:31 2008
New Revision: 1012

Log:
in remap_loadmap() free map before exiting in case of failure  ; patch by Erik Hovland  - erik hovland org

Modified:
   trunk/libdvdnav/src/remap.c

Modified: trunk/libdvdnav/src/remap.c
==============================================================================
--- trunk/libdvdnav/src/remap.c	(original)
+++ trunk/libdvdnav/src/remap.c	Sat Apr 19 12:34:31 2008
@@ -229,7 +229,10 @@ remap_t* remap_loadmap( char *title) {
 	}
     }
 
-    if (map->nblocks == 0 && map->debug == 0) return NULL;
+    if (map->nblocks == 0 && map->debug == 0) {
+        free(map);
+        return NULL;
+    }
     return map;
 }
 



More information about the DVDnav-discuss mailing list