regression - DistortionCache is never freed.
Closed, ResolvedPublic

Description

In: source/blender/compositor/operations/COM_MovieDistortionOperation.cpp

There is an array that stores multiple distortion cache items.

vector<DistortionCache *> s_cache;

each of these allocates a buffer.
this->m_bufferCalculated = new int[this->m_width * this->m_height];
this->m_buffer = new float[this->m_width * this->m_height * 2];

The distortion cache is never freed.

Jeroen Bakker (jbakker) added a comment.Via Old WorldAug 12 2012, 2:57 PM

Hi Campbell,

I think we need to limit the cache with a number of items, based on last usage. and delete cache items that have not been used for over 5 minutes.

Regards,
Jeroen

Jeroen Bakker (jbakker) added a comment.Via Old WorldAug 13 2012, 12:56 PM

fix in revision 49870.

Jeroen Bakker (jbakker) closed this task as "Resolved".Via Old WorldAug 13 2012, 12:58 PM

Add Comment