When running in MSVC 2005 or 2008 it detects a number of memory leaks on exit. On is from:
- Code: Select all
m_plugin_provider = new PluginListProvider;
in the constructor of the GeckoEngine class. The destructor has
- Code: Select all
m_plugin_provider->Release();
is this also supposed to delete itself within the call to Release()?
Several others come from the items created in GeckoEngine::Init(), in the cases I've looked at they are all associated with the use of ns_smartptr template.
The main problem with this is that it makes it harder to spot memory leaks from my own code
Cheers
Nigel