Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/lib_ccx/matroska.c
Original file line number Diff line number Diff line change
Expand Up @@ -1898,14 +1898,29 @@ void free_sub_track(struct matroska_sub_track *track)
free(track->lang_ietf);
if (track->codec_id_string != NULL)
free(track->codec_id_string);

for (int i = 0; i < track->sentence_count; i++)
{
struct matroska_sub_sentence *sentence = track->sentences[i];

free(sentence->text);

if (sentence->blockaddition != NULL)
{
/* cue_settings_list is the base of the message buffer;
* cue_identifier and comment are pointers into it */
if (sentence->blockaddition->cue_settings_list != NULL)
free(sentence->blockaddition->cue_settings_list);

Comment on lines +1911 to +1917
free(sentence->blockaddition);
}

free(sentence);
}

if (track->sentences != NULL)
free(track->sentences);

free(track);
}

Expand Down
Loading