Skip to content

tree-wide: use g_clear_handle_id() for GSource cleanup

Matthew Penney kvm qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 8 patches 2 repliesIn review

1 of 8 patches is in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
6/8target/i386/kvm: use g_clear_handle_id() for GSource cleanuptarget/i386/kvm/tdx-quote-generator.c+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] tree-wide: use g_clear_handle_id() for GSource cleanup

This series replaces open-coded uses of g_source_remove() with g_clear_handle_id() across the tree.

This is a more modern (GLib >= 2.56) approach than directly calling g_source_remove().

g_clear_handle_id() simplifies cleanup of GSource IDs since it checks the ID is valid, calls the cleanup function and zeros the ID.

This reduces boilerplate and avoids open-coded calls to g_source_remove().

This series follows an earlier fix that removed a dangling GSource tag and replaced an explicit call to g_source_remove() with g_clear_handle_id().

No functional changes.