labwc/src/cycle
John Lindgren 16c5373be5
Some checks are pending
labwc.github.io / notify (push) Waiting to run
tree-wide: use die_if_null() for wlr_scene alloc failures
wlr_scene_*_create() functions all allocate memory via calloc() and
return NULL if the allocation fails. Previously, the failures were
handled in any of 3 different ways:

 - sending a wayland protocol error
 - exiting labwc with an error
 - segfault (no NULL check at all)

Since labwc does not attempt to survive heap exhaustion in other
allocation paths (such as `znew`), it seems more consistent to use the
same die_if_null() check used in those paths to exit with an error.

For the three most common create() functions (tree, rect, buffer),
add small lab_wlr_ wrappers to common/scene-helpers.
2026-03-15 21:26:37 +00:00
..
cycle.c tree-wide: use die_if_null() for wlr_scene alloc failures 2026-03-15 21:26:37 +00:00
meson.build cycle: implement scrollable OSD 2025-12-31 22:46:53 +00:00
osd-classic.c tree-wide: use die_if_null() for wlr_scene alloc failures 2026-03-15 21:26:37 +00:00
osd-field.c Use "cycle" instead of "osd" across the codebase 2025-11-30 16:20:16 +09:00
osd-scroll.c tree-wide: use die_if_null() for wlr_scene alloc failures 2026-03-15 21:26:37 +00:00
osd-thumbnail.c tree-wide: use die_if_null() for wlr_scene alloc failures 2026-03-15 21:26:37 +00:00