From 8558039bd3c54c57b2db0afc20e4923b68078f57 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Wed, 21 Mar 2012 17:22:31 +0000 Subject: fix for a memory crash git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@600 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/popwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tipper/popwin.cpp') diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 1aac665..109c6f1 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -90,7 +90,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa pwd->rows = (RowData *) realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1)); pwd->rows[pwd->row_count].swzLabel = _tcsdup(TranslateT("Status:")); - pwd->rows[pwd->row_count].swzValue = strptr; + pwd->rows[pwd->row_count].swzValue = _tcsdup(strptr); pwd->rows[pwd->row_count].value_newline = false; pwd->rows[pwd->row_count].line_above = false; pwd->row_count++; -- cgit v1.2.3