Author: gedmurphy
Date: Fri Mar 6 01:31:11 2009
New Revision: 39887
URL:
http://svn.reactos.org/svn/reactos?rev=39887&view=rev
Log:
Don't leak font objects
Modified:
trunk/reactos/dll/win32/user32/windows/draw.c
Modified: trunk/reactos/dll/win32/user32/windows/draw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] Fri Mar 6 01:31:11 2009
@@ -814,6 +814,7 @@
SetTextColor(dc, GetSysColor(COLOR_WINDOWTEXT));
SelectObject(dc, hOldFont);
+ DeleteObject(hFont);
return TRUE;
}
@@ -1286,6 +1287,7 @@
SetTextColor(dc, clrsave);
SelectObject(dc, hOldFont);
+ DeleteObject(hFont);
return retval;
}