PATCH: dlls\comctl32\tooltips.c
Sander van Leeuwen
sandervl at xs4all.nl
Tue Oct 29 06:14:46 CST 2002
ChangeLog:
* dlls\comctl32\tooltips.c
Fixed font object leak in WM_SETFONT handler
Author:
Sander van Leeuwen <sandervl at xs4all.nl>
License: X11 / LGPL
--- tooltips.c Tue Oct 29 13:11:18 2002
+++ tooltips.cn Tue Oct 29 13:11:30 2002
@@ -2093,6 +2093,8 @@
if(!GetObjectW((HFONT)wParam, sizeof lf, &lf))
return 0;
+
+ if(infoPtr->hFont) DeleteObject (infoPtr->hFont);
infoPtr->hFont = CreateFontIndirectW(&lf);
if ((LOWORD(lParam)) & (infoPtr->nCurrentTool != -1)) {
More information about the wine-patches
mailing list