summaryrefslogtreecommitdiffstats
path: root/base/singleton_dll_unittest.cc
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 18:34:32 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 18:34:32 +0000
commit904ee4d28f6d598abb63a48645e4d77b56face6a (patch)
tree1bc7ea93059c951738667609d694638616625f00 /base/singleton_dll_unittest.cc
parent77e09a9cd90f36a77c9c934290d1e7a45f761687 (diff)
downloadchromium_src-904ee4d28f6d598abb63a48645e4d77b56face6a.zip
chromium_src-904ee4d28f6d598abb63a48645e4d77b56face6a.tar.gz
chromium_src-904ee4d28f6d598abb63a48645e4d77b56face6a.tar.bz2
The addition of the AtExitManager test in the singleton dll test makes purify-sub angry.
- Not sure what is the issue, purify reports FMM (freeing mismatched memory), but I don't see why. - Don't do the frees inside the dll unload callback directly. TBR=erikkay git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/singleton_dll_unittest.cc')
-rw-r--r--base/singleton_dll_unittest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/singleton_dll_unittest.cc b/base/singleton_dll_unittest.cc
index 4e0ec3a..78b2a7c 100644
--- a/base/singleton_dll_unittest.cc
+++ b/base/singleton_dll_unittest.cc
@@ -33,7 +33,7 @@
namespace {
-base::AtExitManager* g_exit_manager = NULL;
+base::AtExitManager g_exit_manager;
} // namespace
@@ -41,13 +41,11 @@ BOOL APIENTRY DllMain(HMODULE module, DWORD reason_for_call, LPVOID reserved) {
switch (reason_for_call) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(module);
- g_exit_manager = new base::AtExitManager();
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
- delete g_exit_manager;
break;
}
return TRUE;