change freeing of frame_mappers allocated in Timeline

- each class is now responsible to free whatever it allocates
- all tests passed on my machine with ffmpeg 3.2
- Clip is now more careful about freeing a reader if it allocated it as well
This commit is contained in:
Chris Kirmse
2019-05-09 10:51:40 -07:00
parent 833fcb8e8e
commit d5a29500a5
7 changed files with 38 additions and 16 deletions

View File

@@ -62,7 +62,6 @@ FrameMapper::~FrameMapper() {
// Auto Close if not already
Close();
delete reader;
reader = NULL;
}