summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 14:12:56 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 14:12:56 +0000
commit5bfbecafc6b0969463e1ebeee46c5fe17e59a42e (patch)
tree50726f058351372f52c9718169c0173dde706f88 /chrome/renderer
parentbc6771854262babec634e005b9c3fa4b82336a81 (diff)
downloadchromium_src-5bfbecafc6b0969463e1ebeee46c5fe17e59a42e.zip
chromium_src-5bfbecafc6b0969463e1ebeee46c5fe17e59a42e.tar.gz
chromium_src-5bfbecafc6b0969463e1ebeee46c5fe17e59a42e.tar.bz2
Don't crash on chrome.exe --type=renderer. Don't try to GlobalCleanup() if GlobalInit() wasn't successful.
Review URL: http://codereview.chromium.org/10247 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 2553a65..169779d 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -107,8 +107,9 @@ int RendererMain(CommandLine &parsed_command_line, int show_command,
// message loop to use it when translating messages.
MessageLoop::current()->Run();
}
+
+ RenderProcess::GlobalCleanup();
}
- RenderProcess::GlobalCleanup();
CoUninitialize();
return 0;