Opened 18 years ago
Last modified 14 years ago
#868 closed defect (fixed)
memory leak in subreader.c
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | important | Component: | core |
Version: | unspecified | Severity: | normal |
Keywords: | Cc: | ubitux | |
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
row: 2243
function sub_free frees memory only from firs subtitle block:
new function:
void sub_free( sub_data * subd )
{
int i, j;
if ( !subd ) return;
if (subd->subtitles) {
for(j = 0; j < subd->sub_num; j ++)
for (i=0; i < subd->subtitles[j].lines; i++) free( subd->subtitles[j].text[i] );
free( subd->subtitles );
}
if (subd->filename) free( subd->filename );
free( subd );
}
Change History (1)
comment:1 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed, ubitux@gmail.com |
Note:
See TracTickets
for help on using tickets.
This has been fixed by Reimar in revision 30390 (~one year ago).