Revert revision 476: Add patch to fix GDI object leak in FontCacheChromiumWin.cpp createFontIndirectAndGetWinName (issue #499).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@478 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-02-07 21:03:26 +00:00
parent d1ec7b7e9b
commit 7947abaaa0
2 changed files with 0 additions and 17 deletions

View File

@@ -1,12 +0,0 @@
Index: FontCacheChromiumWin.cpp
===================================================================
--- FontCacheChromiumWin.cpp (revision 102901)
+++ FontCacheChromiumWin.cpp (working copy)
@@ -255,6 +255,7 @@
resultLength--; // ignore the null terminator
SelectObject(dc, oldFont);
+ DeleteObject(hfont);
ReleaseDC(0, dc);
*winName = String(name, resultLength);
return hfont;