Memory Leak in ifo_read.c
Xiaoyu Fang <[email protected]> Wed, 30 Mar 2005 15:53:08 +0800
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'v just fixed two memory leaks in ifo_read.c of libdvdread locally.
Here is how and I hope it will be usefull.
1. In ifoClose(ifo_handle_t *ifofile), after
ifoFree_VTS_PTT_SRPT(ifofile);
add a line
ifoFree_VTS_TMAPT(ifofile);
2. In ifoFree_PGCIT_internal(pgcit_t *pgcit) ,
change
for(i = 0; i < pgcit->nr_of_pgci_srp; i++)
ifoFree_PGC(pgcit->pgci_srp[i].pgc);
to
for(i = 0; i < pgcit->nr_of_pgci_srp; i++)
{
ifoFree_PGC(pgcit->pgci_srp[i].pgc);
free(pgcit->pgci_srp[i].pgc);
}
Xiaoyu.