labwc/src/scaled-buffer
John Lindgren 16c5373be5
Some checks failed
labwc.github.io / notify (push) Has been cancelled
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
..
meson.build scaled-scene-buffer: restructure source files 2025-09-02 21:31:19 +01:00
scaled-buffer.c tree-wide: use die_if_null() for wlr_scene alloc failures 2026-03-15 21:26:37 +00:00
scaled-font-buffer.c Remove unused function scaled_font_buffer_set_max_width() 2025-09-26 10:41:21 -04:00
scaled-icon-buffer.c view: store title/app_id in view 2025-10-14 02:27:13 +09:00
scaled-img-buffer.c scaled-buffer: remove *_from_node() functions 2025-09-08 15:46:36 +09:00