summaryrefslogtreecommitdiffstats
path: root/base/message_pump_win.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 22:11:12 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 22:11:12 +0000
commit8fba5ee7c18595541d55d5af82c6670ce7ed6434 (patch)
tree47898f85a9399e9235bb2ee7c4134705ea4ed649 /base/message_pump_win.cc
parent50faca730337e5145c58b9a8852be735433c8d77 (diff)
downloadchromium_src-8fba5ee7c18595541d55d5af82c6670ce7ed6434.zip
chromium_src-8fba5ee7c18595541d55d5af82c6670ce7ed6434.tar.gz
chromium_src-8fba5ee7c18595541d55d5af82c6670ce7ed6434.tar.bz2
This CL makes sure we unregister our Windows window classes when shut-down.
It also balances-out an OLE initialization performed by the CRichEditCTRL. This is necessary for allowing to reload chrome.dll in a process, which is what the browser tests will do. BUG=None TEST=None Review URL: http://codereview.chromium.org/93026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_win.cc')
-rw-r--r--base/message_pump_win.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/message_pump_win.cc b/base/message_pump_win.cc
index 3af1991..ffd12ca 100644
--- a/base/message_pump_win.cc
+++ b/base/message_pump_win.cc
@@ -88,6 +88,7 @@ MessagePumpForUI::MessagePumpForUI() {
MessagePumpForUI::~MessagePumpForUI() {
DestroyWindow(message_hwnd_);
+ UnregisterClass(kWndClass, GetModuleHandle(NULL));
}
void MessagePumpForUI::ScheduleWork() {