Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: views/controls/menu/menu_config_win.cc

Issue 7978021: Fix memory leak on menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_config_win.cc
diff --git a/views/controls/menu/menu_config_win.cc b/views/controls/menu/menu_config_win.cc
index 8ddbdb0fe98e0cc794d601beee454e26fadf8002..b0b2aea8c6fedb56a42b7964c4a232dadc1c87b6 100644
--- a/views/controls/menu/menu_config_win.cc
+++ b/views/controls/menu/menu_config_win.cc
@@ -32,6 +32,7 @@ MenuConfig* MenuConfig::Create() {
HFONT font = CreateFontIndirect(&metrics.lfMenuFont);
sky 2011/09/21 22:31:57 Actually, could you change this to use base::win::
DLOG_ASSERT(font);
config->font = gfx::Font(font);
+ DeleteObject(font);
NativeTheme::ExtraParams extra;
extra.menu_check.is_radio = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698