Skip to content

Commit

Permalink
source: ignore send... requests when resource is null
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jun 7, 2024
1 parent f84ca21 commit 46faf3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ static const void* {}[] = {{

SOURCE += std::format(R"#(
void {}::{}({}) {{
if (!pResource)
return;
wl_resource_post_event(pResource, {}{});
}}
)#",
Expand Down Expand Up @@ -631,6 +633,8 @@ void {}::{}({}) {{

SOURCE += std::format(R"#(
void {}::{}({}) {{
if (!pResource)
return;
wl_resource_post_event(pResource, {}{});
}}
)#",
Expand Down

0 comments on commit 46faf3e

Please sign in to comment.