[DVDnav-discuss] r1237 - trunk/libdvdread/src/ifo_read.c
rathann
subversion at mplayerhq.hu
Thu Oct 6 23:02:00 CEST 2011
Author: rathann
Date: Thu Oct 6 23:02:00 2011
New Revision: 1237
Log:
Fix memory leaks.
Patch by Rémi Duraffort ^ivoire#videolan*org!
Modified:
trunk/libdvdread/src/ifo_read.c
Modified: trunk/libdvdread/src/ifo_read.c
==============================================================================
--- trunk/libdvdread/src/ifo_read.c Thu Oct 6 19:23:06 2011 (r1236)
+++ trunk/libdvdread/src/ifo_read.c Thu Oct 6 23:02:00 2011 (r1237)
@@ -1896,6 +1896,7 @@ static int ifoRead_PGCIT_internal(ifo_ha
ifoFree_PGC(pgcit->pgci_srp[j].pgc);
free(pgcit->pgci_srp[j].pgc);
}
+ free(pgcit->pgci_srp[i].pgc);
goto fail;
}
}
@@ -1911,7 +1912,10 @@ static void ifoFree_PGCIT_internal(pgcit
if(pgcit) {
int i;
for(i = 0; i < pgcit->nr_of_pgci_srp; i++)
+ {
ifoFree_PGC(pgcit->pgci_srp[i].pgc);
+ free(pgcit->pgci_srp[i].pgc);
+ }
free(pgcit->pgci_srp);
}
}
More information about the DVDnav-discuss
mailing list