mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
scanner: Emit wl_*_destroy stub even if interface has a destructor
If an interface has a destructor but no 'destroy' method we used to not emit a destroy method. Now with the fix for missing destroy requests for wl_pointer etc we need to emit the local wl_*_destroy always.
This commit is contained in:
parent
ea1fb51aae
commit
b76a6968fc
1 changed files with 1 additions and 1 deletions
|
|
@ -606,7 +606,7 @@ emit_stubs(struct wl_list *message_list, struct interface *interface)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has_destructor && strcmp(interface->name, "wl_display") != 0)
|
if (!has_destroy && strcmp(interface->name, "wl_display") != 0)
|
||||||
printf("static inline void\n"
|
printf("static inline void\n"
|
||||||
"%s_destroy(struct %s *%s)\n"
|
"%s_destroy(struct %s *%s)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue