diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-05-17 08:17:48 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-05-17 08:17:48 +0000 |
commit | 0124b5cb073dfc46c086ef9fbcdc77d593a40e4b (patch) | |
tree | dbfadf79507e5c402d7a5be904655b898b4b578b /plugins | |
parent | 5ece45192b6b77a5a746cc5404fbe8bcef0c909a (diff) |
crash fix (#931)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13660 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MyDetails/src/frame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)
|