Commit a1f3756d authored by Thomas Weidenmüller's avatar Thomas Weidenmüller Committed by Alexandre Julliard

Free allocated font handles when control is destroyed.

parent ce70daf3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment