From a1f3756daab26d8cf4aae650db2964eefea6e2a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Weidenm=C3=BCller?= Date: Wed, 8 Dec 2004 19:36:23 +0000 Subject: [PATCH] Free allocated font handles when control is destroyed. --- dlls/comctl32/syslink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/comctl32/syslink.c b/dlls/comctl32/syslink.c index f81fd81bdeb..437c5975204 100644 --- a/dlls/comctl32/syslink.c +++ b/dlls/comctl32/syslink.c @@ -1637,6 +1637,8 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message, case WM_DESTROY: TRACE("SysLink Ctrl destruction, hwnd=%p\n", hwnd); SYSLINK_ClearDoc(infoPtr); + if(infoPtr->Font != 0) DeleteObject(infoPtr->Font); + if(infoPtr->LinkFont != 0) DeleteObject(infoPtr->LinkFont); SYSLINK_Free (infoPtr); SetWindowLongPtrW(hwnd, 0, 0); return 0; -- 2.11.4.GIT