From 46faf3edc25d8d875af620ef42527cd74b776e5e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 7 Jun 2024 13:29:43 +0200 Subject: [PATCH] source: ignore send... requests when resource is null --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c0af877..3872e7d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -598,6 +598,8 @@ static const void* {}[] = {{ SOURCE += std::format(R"#( void {}::{}({}) {{ + if (!pResource) + return; wl_resource_post_event(pResource, {}{}); }} )#", @@ -631,6 +633,8 @@ void {}::{}({}) {{ SOURCE += std::format(R"#( void {}::{}({}) {{ + if (!pResource) + return; wl_resource_post_event(pResource, {}{}); }} )#",