summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-08-13 20:06:30 +0100
committerKristian Høgsberg <krh@bitplanet.net>2013-08-30 15:53:55 -0700
commitb76a6968fcf3cec1d7f4c30ba67bb44b20c0ff03 (patch)
treeaa12c43c8a6959f419a1c125dd5c0bf6e5622e86
parentea1fb51aae9fee7d416a0f2ba617f998cdee696d (diff)
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.
-rw-r--r--src/scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 5124000..d02d865 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -606,7 +606,7 @@ emit_stubs(struct wl_list *message_list, struct interface *interface)
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"
"%s_destroy(struct %s *%s)\n"
"{\n"