You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
free cache in FrameMapper::Close()
- this hugely reduces the memory used by rendering a timeline with a lot of clips - could be related to issue #239
This commit is contained in:
@@ -651,6 +651,16 @@ void FrameMapper::Close()
|
||||
// Close internal reader
|
||||
reader->Close();
|
||||
|
||||
// Clear the fields & frames lists
|
||||
fields.clear();
|
||||
frames.clear();
|
||||
|
||||
// Mark as dirty
|
||||
is_dirty = true;
|
||||
|
||||
// Clear cache
|
||||
final_cache.Clear();
|
||||
|
||||
// Deallocate resample buffer
|
||||
if (avr) {
|
||||
SWR_CLOSE(avr);
|
||||
|
||||
Reference in New Issue
Block a user