X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e055a386af9c83d4a04e72f7c58805f1197df8be..dcbde23605bb045df116a1dd522d4ddb4d9288fa:/sizetip.c diff --git a/sizetip.c b/sizetip.c index 10bdee52..8a37b478 100644 --- a/sizetip.c +++ b/sizetip.c @@ -43,7 +43,7 @@ static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, Rectangle(hdc, cr.left, cr.top, cr.right, cr.bottom); wtlen = GetWindowTextLength(hWnd); - wt = (LPTSTR)malloc((wtlen+1)*sizeof(TCHAR)); + wt = (LPTSTR)smalloc((wtlen+1)*sizeof(TCHAR)); GetWindowText(hWnd, wt, wtlen+1); SetTextColor(hdc, tip_text); @@ -51,7 +51,7 @@ static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, TextOut(hdc, cr.left+3, cr.top+3, wt, wtlen); - free(wt); + sfree(wt); SelectObject(hdc, holdbr); DeleteObject(hbr);