#60 destructor ~AAFDLL() memory leak

open
nobody
None
5
2003-12-10
2003-12-10
Harry Plate
No

the AAFDLL destructor simply throws away singleton ptr; this
ptr is not a smart pointer, so assigning a NULL does not
ultimately relinquish the ptr.

this was reported as a memory leak using DebugNew under
CodeWarrior 8.3 on OS10.2.3

Is this somehow related to Bug #524563 ??

Here is the relevant code that I have - which is supposed to
be the "tip" [aaflib.cpp] :

//********************************
//
// Destructor for the base class
AAFDLL::~AAFDLL()
{
assert(this == _singleton);

// Reset the entry point function pointers to NULL.
ClearEntrypoints();

// Clear the reference to the singleton
_singleton = NULL;
}

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks