[Insight-developers] ObjectFactoryBase::m_RegisteredFactories

Lydia Ng lng@insightful.com
Wed, 10 Oct 2001 17:55:50 -0700


There seem to be possible memory leak issue
with ObjectFactoryBase::m_RegisteredFactories.

It is new'd in ObjectFactoryBase::Initialize
which is called each time we New() something.

But it is only deleted in 
ObjectFactoryBase::UnRegisterAllFactories().

This means in order for my application
not to leak memory I have to make an explicit
call to UnRegisterAllFactories() before my
application terminates. Is this by design?

Lydia