From 01818f683cbaf31357ac4e133fca0fcb8ab1104a Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 22 Jan 2024 15:16:55 +0200 Subject: [PATCH] wayland: Add missing wp_security_context_manager_v1.destroy implementation --- src/wayland/securitycontext_v1.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wayland/securitycontext_v1.cpp b/src/wayland/securitycontext_v1.cpp index bfae9f35a7..eddc31a170 100644 --- a/src/wayland/securitycontext_v1.cpp +++ b/src/wayland/securitycontext_v1.cpp @@ -24,7 +24,8 @@ public: SecurityContextManagerV1InterfacePrivate(Display *display); protected: - void wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd); + void wp_security_context_manager_v1_destroy(Resource *resource) override; + void wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd) override; private: Display *m_display; @@ -69,6 +70,11 @@ SecurityContextManagerV1InterfacePrivate::SecurityContextManagerV1InterfacePriva { } +void SecurityContextManagerV1InterfacePrivate::wp_security_context_manager_v1_destroy(Resource *resource) +{ + wl_resource_destroy(resource->handle); +} + void SecurityContextManagerV1InterfacePrivate::wp_security_context_manager_v1_create_listener(Resource *resource, uint32_t id, int32_t listen_fd, int32_t close_fd) { auto *securityContextResource = wl_resource_create(resource->client(), &wp_security_context_v1_interface, resource->version(), id);