summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/app/google_update_client.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/app/google_update_client.cc b/chrome/app/google_update_client.cc
index c8bba6d..a8cd8af 100644
--- a/chrome/app/google_update_client.cc
+++ b/chrome/app/google_update_client.cc
@@ -199,7 +199,11 @@ bool GoogleUpdateClient::Launch(HINSTANCE instance, HINSTANCE prev_instance,
}
did_launch = true;
}
+#ifdef PURIFY
+ // We should never unload the dll. There is only risk and no gain from
+ // doing so. The singleton dtors have been already run by AtExitManager.
::FreeLibrary(dll_handle);
+#endif
} else {
unsigned long err = GetLastError();
if (err) {