Opened 12 years ago

Last modified 9 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: Analyzed by developer:


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 Changed 9 years ago by ubitux

  • Resolution set to fixed
  • Status changed from new to closed,

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

Note: See TracTickets for help on using tickets.