Beispiel #1
0
BOOL WINAPI DllMain( HINSTANCE hInst, DWORD callReason, LPVOID )
{
    if (callReason==DLL_THREAD_DETACH)
    {
        mallocThreadShutdownNotification(NULL);
    }
    else if (callReason==DLL_PROCESS_DETACH)
    {
        mallocProcessShutdownNotification();
    }
    return TRUE;
}
Beispiel #2
0
 ~RegisterProcessShutdownNotification() {
     mallocProcessShutdownNotification();
 }