mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-04-19 05:07:27 +02:00
- Add patch to fix GDI object leak in FontCacheChromiumWin.cpp createFontIndirectAndGetWinName (issue #499). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@477 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
13 lines
412 B
Diff
13 lines
412 B
Diff
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;
|