static void free_frame_callback_data (FrameCallbackData *callback_data) { cogl_object_unref (callback_data->frame_info); wl_callback_destroy (callback_data->callback); _cogl_list_remove (&callback_data->link); g_slice_free (FrameCallbackData, callback_data); }
void _cogl_closure_disconnect (CoglClosure *closure) { _cogl_list_remove (&closure->link); if (closure->destroy_cb) closure->destroy_cb (closure->user_data); g_slice_free (CoglClosure, closure); }
void _cogl_pipeline_node_unparent_real (CoglNode *node) { CoglNode *parent = node->parent; if (parent == NULL) return; _COGL_RETURN_IF_FAIL (!_cogl_list_empty (&parent->children)); _cogl_list_remove (&node->link); if (node->has_parent_reference) cogl_object_unref (parent); node->parent = NULL; }