]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sizetip.c
Using plink with CVS - need to make sure the saved session uses SSH
[PuTTY.git] / sizetip.c
index 10bdee528ac6e1acb478aa2f863e222fa0aaa039..8a37b4787cf85bdc0bbc52da38555d34acf03a5e 100644 (file)
--- 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);