Mercurial > dwindows
changeset 2085:43453c9a404c
Win: Implement DW_HTML_STOP for Edge (Chromium) now that it is suppported.
Fix a small memory leak and safety issue during Edge widget creation.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 03 Jun 2020 05:53:05 +0000 |
parents | 524cb235a555 |
children | 498bdd71a556 |
files | win/edge.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/win/edge.cpp Tue Jun 02 18:35:53 2020 +0000 +++ b/win/edge.cpp Wed Jun 03 05:53:05 2020 +0000 @@ -178,12 +178,14 @@ if (url) { WebView->URL(url); + dw_window_set_data(hWnd, _DW_HTML_DATA_LOCATION, NULL); free((void*)url); } char *raw = (char *)dw_window_get_data(hWnd, _DW_HTML_DATA_RAW); if (raw) { WebView->Raw(raw); + dw_window_set_data(hWnd, _DW_HTML_DATA_RAW, NULL); free((void*)raw); } return S_OK; @@ -283,7 +285,7 @@ case DW_HTML_STOP: { // Call the IWebView2WebView object's Stop function. - //WebView->Stop(); + WebView->Stop(); } } }