#266 Mem

Version 5.10
closed-duplicate
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

  • This is a dupe of bug #267.

     
    • status: open --> closed-duplicate