#267 Memory leak in AbsFunctionComponent for `components` member variable.

Version 5.10
closed-fixed
nobody
Memory Leak (4)
5
2014-02-13
2013-11-07
No

Hi,
The components member variable of AbsFunctionComponent, is a vector of pointers, those are not deleted in the destructor.
File: AbsFunctionComponent.cpp

AbsFunctionComponent::~AbsFunctionComponent()
{
size_t stSize;
size_t stLoop;

stSize = components.size();
for (stLoop = 0; stLoop < stSize; stLoop++)
{
    delete components[stLoop];
}
}

The above code can be used to resolve the leak.

Discussion

  • Michael Chisholm

    • status: open --> closed-fixed
     
  • Michael Chisholm

    Fixed in r1720.

     

Log in to post a comment.