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:
Blake-Madden
2026-08-14 13:12:07 -04:00
parent 70d0faee2b
commit e2f8353a17
+1 -1
View File
@@ -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();