1
0

matroskadec_haali: empty queues on close

The queues can in some situations still contain data thats not properly
free'ed elsewhere, so clear them on close to ensure no memory blocks are
being leaked.
This commit is contained in:
Hendrik Leppkes 2019-09-11 11:17:10 +02:00
parent cd89e0cb7b
commit fcf4cf2322
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5

View File

@ -3282,6 +3282,8 @@ void mkv_Close(MatroskaFile *mf) {
if (mf==NULL)
return;
EmptyQueues(mf);
for (i=0;i<mf->nTracks;++i)
mf->cache->memfree(mf->cache,mf->Tracks[i]);
mf->cache->memfree(mf->cache,mf->Tracks);