Opened 17 years ago

Last modified 13 years ago

#868 closed defect (fixed)

memory leak in subreader.c

Reported by: phusho@… 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 ubitux, 13 years ago

Resolution: fixed
Status: newclosed, ubitux@gmail.com

This has been fixed by Reimar in revision 30390 (~one year ago).

Note: See TracTickets for help on using tickets.