mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
avilib: free memory allocated for text tracks
This commit is contained in:
parent
bbcf10032c
commit
cf225ece06
@ -1972,6 +1972,15 @@ int AVI_close(avi_t *AVI)
|
||||
}
|
||||
}
|
||||
|
||||
for (j=0; j<AVI->tnum; j++)
|
||||
{
|
||||
if(AVI->ttrack[j].audio_index) free(AVI->ttrack[j].audio_index);
|
||||
if(AVI->ttrack[j].audio_superindex) {
|
||||
if(AVI->ttrack[j].audio_superindex->aIndex) free(AVI->ttrack[j].audio_superindex->aIndex);
|
||||
free(AVI->ttrack[j].audio_superindex);
|
||||
}
|
||||
}
|
||||
|
||||
if (AVI->bitmap_info_header)
|
||||
free(AVI->bitmap_info_header);
|
||||
for (j = 0; j < AVI->anum; j++)
|
||||
|
Loading…
Reference in New Issue
Block a user