scanner: add NULL checks to generated destroy stubs

Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
This commit is contained in:
YaoBing Xiao 2026-03-05 21:18:48 +08:00
parent bd182f8bdc
commit e55fc1984b
5 changed files with 106 additions and 0 deletions

View file

@ -237,6 +237,10 @@ intf_A_rq2(struct intf_A *intf_A, const char *str, int32_t i, uint32_t u, wl_fix
static inline void
intf_A_destroy(struct intf_A *intf_A)
{
if (intf_A == NULL) {
return;
}
wl_proxy_marshal_flags((struct wl_proxy *) intf_A,
INTF_A_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) intf_A), WL_MARSHAL_FLAG_DESTROY);
}