Bonjour,

Sur mon application d'extension du shell, j'ai des fuites de memoire
qui me renvoient vers le fichier C:\Program Files\Microsoft Visual
Studio\VC98\MFC\SRC\dllmodul.cpp.
(VC++6.0 - MFC)
Comment les corriger ?

Detected memory leaks!
Dumping objects ->
dllmodul.cpp(106) :
{61} client block at 0x015A1700, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $015A1700, 64 bytes long
{56} client block at 0x015A18B0, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $015A18B0, 64 bytes long
{54} client block at 0x015A19D0, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $015A19D0, 64 bytes long
{49} client block at 0x015A1B50, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $015A1B50, 64 bytes long
{47} client block at 0x015A1C70, subtype 0, 64 bytes long.
a CDynLinkLibrary object at $015A1C70, 64 bytes long
Object dump complete.
dllmodul.cpp
...
#ifdef _AFXDLL
// wire up this DLL into the resource chain
VERIFY(AfxInitExtensionModule(controlDLL, hInstance));
CDynLinkLibrary* pDLL; pDLL = new CDynLinkLibrary(controlDLL);
ASSERT(pDLL != NULL);
#else
AfxInitLocalData(hInstance);
#endif
...
pDLL n'est pas libéré.

Merci