mirror of
https://github.com/labwc/labwc.git
synced 2026-06-15 14:33:48 -04:00
|
Some checks failed
labwc.github.io / notify (push) Has been cancelled
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. |
||
|---|---|---|
| .. | ||
| meson.build | ||
| scaled-buffer.c | ||
| scaled-font-buffer.c | ||
| scaled-icon-buffer.c | ||
| scaled-img-buffer.c | ||