diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
commit | a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0 (patch) | |
tree | b37c85641aef8df14c732e4b187444e040a11555 /chrome/browser/renderer_host | |
parent | a93e517bfe25f11b2c4cc7d69f386424b93a2efa (diff) | |
download | chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.zip chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.gz chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.bz2 |
This CL adds macro used to track the creation and destruction
of HWNDs, in an attempt to detect potential double-delete.
A double-delete of a HWND might be responsible for the crasher
http://crbug.com/4714
Note: this CL was previously committed and reverted because it broke the sandbox integration module.
Review URL: http://codereview.chromium.org/21032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_win.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc index 2c19e7e..f4c27dd 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_win.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc @@ -396,6 +396,7 @@ LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale // of a browser process. OnInputLangChange(0, 0); + TRACK_HWND_CREATION(m_hWnd); return 0; } @@ -413,6 +414,7 @@ void RenderWidgetHostViewWin::OnActivate(UINT action, BOOL minimized, void RenderWidgetHostViewWin::OnDestroy() { ResetTooltip(); TrackMouseLeave(false); + TRACK_HWND_DESTRUCTION(m_hWnd); } void RenderWidgetHostViewWin::OnPaint(HDC dc) { |