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, {}{}); }} )#",