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:
parent
cd89e0cb7b
commit
fcf4cf2322
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user