FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
582 stars 105 forks source link

ffmsindex: Do not leak the Index object on exit #199

Closed kodawah closed 9 years ago

kodawah commented 9 years ago

This reproducible with valgrind

==68209== 687,700 (72 direct, 687,628 indirect) bytes in 1 blocks are definitely lost in loss record 856 of 858 ==68209== by 0x20ED28D: operator new(unsigned long) (in /usr/lib/libc++.1.dylib) ==68209== by 0x1000155D3: FFMS_ReadIndex (ffms.cpp:406) ==68209== by 0x10000215F: (anonymous namespace)::DoIndexing() (ffmsindex.cpp:173) ==68209== by 0x10000150E: main (ffmsindex.cpp:297)

myrsloik commented 9 years ago

This has been fixed slightly differently in my own branch which will be merged with master soon.