Mercurial > dwindows
diff win/edge.cpp @ 2022:28809bf17957
Win: Switch to using _wcsicmp() from CompareStringOrdinal() for increased compatibility.
Remove debug messages from the new IE code. Add _free_window_memory() to cleanup browsers.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 09 Nov 2019 07:18:21 +0000 |
parents | 663d79f28e46 |
children | d81d2ea806c6 |
line wrap: on
line diff
--- a/win/edge.cpp Sat Nov 09 06:33:08 2019 +0000 +++ b/win/edge.cpp Sat Nov 09 07:18:21 2019 +0000 @@ -27,6 +27,7 @@ #define UTF8toWide(a) _myUTF8toWide(a, a ? _alloca(MultiByteToWideChar(CP_UTF8, 0, a, -1, NULL, 0) * sizeof(WCHAR)) : NULL) #define WideToUTF8(a) _myWideToUTF8(a, a ? _alloca(WideCharToMultiByte(CP_UTF8, 0, a, -1, NULL, 0, NULL, NULL)) : NULL) LRESULT CALLBACK _wndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2); + BOOL CALLBACK _free_window_memory(HWND handle, LPARAM lParam); extern HWND DW_HWND_OBJECT; BOOL DW_EDGE_DETECTED = FALSE; @@ -292,8 +293,8 @@ { dw_window_set_data(hWnd, _DW_HTML_DATA_NAME, NULL); webview->Close(); - } + _free_window_memory(hwnd, 0); return(TRUE); } }