From 0124b5cb073dfc46c086ef9fbcdc77d593a40e4b Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 17 May 2015 08:17:48 +0000 Subject: crash fix (#931) git-svn-id: http://svn.miranda-ng.org/main/trunk@13660 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MyDetails') diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 125f423f87..498846efd5 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -503,7 +503,7 @@ RECT GetRect(HDC hdc, RECT rc, const TCHAR *text, const TCHAR *def_text, Protoco else DrawText(hdc, tmp2, -1, &r_tmp, uFormat | DT_CALCRECT); - free(tmp2); + mir_free(tmp2); s.cx = r_tmp.right - r_tmp.left; s.cy = r_tmp.bottom - r_tmp.top; @@ -1080,7 +1080,7 @@ void DrawTextWithRect(HDC hdc, const TCHAR *text, const TCHAR *def_text, RECT rc if (mouse_over) FrameRect(hdc, &rc, (HBRUSH)GetStockObject(GRAY_BRUSH)); - free(tmp2); + mir_free(tmp2); } void Draw(HWND hwnd, HDC hdc_orig) -- cgit v1.2.3