mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 17:15:45 +08:00
Use g_free instead of free
`webkit_web_resource_get_data_finish` uses `g_malloc`, which must be paired with `g_free` (https://github.com/WebKit/WebKit/blob/bd2249a5dfaf8b28113fc044cf1cb79c55a872a7/Source/WebKit/UIProcess/API/glib/WebKitWebResource.cpp#L429)
This commit is contained in:
@@ -1370,7 +1370,7 @@ wxString wxWebViewWebKit::GetPageSource() const
|
||||
if (source)
|
||||
{
|
||||
const wxString& wxs = wxString::FromUTF8((const char*)source, length);
|
||||
free(source);
|
||||
g_free(source);
|
||||
return wxs;
|
||||
}
|
||||
return wxString();
|
||||
|
||||
Reference in New Issue
Block a user