Mercurial > libdvdnav.hg
comparison remap.c @ 341:090b808c421b src
in remap_loadmap() free map before exiting in case of failure ; patch by Erik Hovland - erik hovland org
author | nicodvb |
---|---|
date | Sat, 19 Apr 2008 10:34:31 +0000 |
parents | 68736572c62c |
children | 83758bfacd4c |
comparison
equal
deleted
inserted
replaced
340:eea1e72ea1dd | 341:090b808c421b |
---|---|
227 } | 227 } |
228 remap_add_node( map, tmp); | 228 remap_add_node( map, tmp); |
229 } | 229 } |
230 } | 230 } |
231 | 231 |
232 if (map->nblocks == 0 && map->debug == 0) return NULL; | 232 if (map->nblocks == 0 && map->debug == 0) { |
233 free(map); | |
234 return NULL; | |
235 } | |
233 return map; | 236 return map; |
234 } | 237 } |
235 | 238 |
236 unsigned long remap_block( | 239 unsigned long remap_block( |
237 remap_t *map, int domain, int title, int program, | 240 remap_t *map, int domain, int title, int program, |