mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-23 05:35:51 -04:00
scanner: add NULL checks to generated destroy stubs
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
This commit is contained in:
parent
bd182f8bdc
commit
e55fc1984b
5 changed files with 106 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ empty_get_version(struct empty *empty)
|
|||
static inline void
|
||||
empty_destroy(struct empty *empty)
|
||||
{
|
||||
if (empty == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
wl_proxy_destroy((struct wl_proxy *) empty);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue