1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Ladybird+LibWebView: Cleanup missing callbacks in InspectorClient

This was causing reproducible crashes, when closing the inspector
window of ladybird running on macos.
This commit is contained in:
Kevin Meyer 2024-01-01 13:31:26 +01:00 committed by Tim Flynn
parent 6231aee761
commit f86ec46a6e

View file

@ -173,10 +173,14 @@ InspectorClient::InspectorClient(ViewImplementation& content_web_view, ViewImple
InspectorClient::~InspectorClient()
{
m_content_web_view.on_received_dom_tree = nullptr;
m_content_web_view.on_finshed_editing_dom_node = nullptr;
m_content_web_view.on_received_accessibility_tree = nullptr;
m_content_web_view.on_received_console_message = nullptr;
m_content_web_view.on_received_console_messages = nullptr;
m_content_web_view.on_received_dom_node_html = nullptr;
m_content_web_view.on_received_dom_node_properties = nullptr;
m_content_web_view.on_received_dom_tree = nullptr;
m_content_web_view.on_received_hovered_node_id = nullptr;
}
void InspectorClient::inspect()