static void wayland_drm_uninit(struct wl_drm *drm) { free(drm->device_name); wl_global_destroy(drm->wl_drm_global); free(drm); }
void swc_drm_finalize() { if (drm.global) wl_global_destroy(drm.global); wl_event_source_remove(drm.event_source); wld_destroy_renderer(swc.drm->renderer); wld_destroy_context(swc.drm->context); close(swc.drm->fd); }
static void text_cursor_position_notifier_destroy(struct wl_listener *listener, void *data) { struct text_cursor_position *text_cursor_position = container_of(listener, struct text_cursor_position, destroy_listener); wl_global_destroy(text_cursor_position->global); free(text_cursor_position); }
static void wayland_output_destroy_notify (gpointer data) { MetaWaylandOutput *wayland_output = data; GList *resources; /* Make sure the destructors don't mess with the list */ resources = wayland_output->resources; wayland_output->resources = NULL; wl_global_destroy (wayland_output->global); g_list_free (resources); g_slice_free (MetaWaylandOutput, wayland_output); }
static void meta_wayland_output_finalize (GObject *object) { MetaWaylandOutput *wayland_output = META_WAYLAND_OUTPUT (object); GList *l; wl_global_destroy (wayland_output->global); /* Make sure the wl_output destructor doesn't try to access MetaWaylandOutput * after we have freed it. */ for (l = wayland_output->resources; l; l = l->next) { struct wl_resource *output_resource = l->data; wl_resource_set_user_data (output_resource, NULL); } g_list_free (wayland_output->resources); G_OBJECT_CLASS (meta_wayland_output_parent_class)->finalize (object); }
void swc_shm_finalize() { wl_global_destroy(shm.global); wld_destroy_renderer(swc.shm->renderer); wld_destroy_context(swc.shm->context); }
void panel_manager_finalize() { wl_global_destroy(panel_manager.global); }
RestrictedGlobal::~RestrictedGlobal() { m_authorizer->removeRestrictedInterface(m_interface->name); wl_global_destroy(m_global); }
Global::~Global() { wl_global_destroy(m_global); }
void swc_shell_finalize() { wl_global_destroy(shell.global); }
void data_device_manager_finalize(void) { wl_global_destroy(data_device_manager.global); }
void xdg_shell_finalize(void) { wl_global_destroy(shell.global); }