Skip to content

Commit

Permalink
Fix memory leak in WebView message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aidv committed Dec 21, 2024
1 parent 51d11a2 commit f67ee53
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ class WebBrowserComponent::Impl::Platform::WebView2 final : public WebBrowserCom
args->TryGetWebMessageAsString (std::addressof (message)) == S_OK)
{
owner.impl->handleNativeEvent (JSON::fromString (StringRef { CharPointer_UTF16 (message) }));
CoTaskMemFree(message);
}

return S_OK;
Expand Down

0 comments on commit f67ee53

Please sign in to comment.