mirror of
https://github.com/labwc/labwc.git
synced 2026-03-17 05:33:47 -04:00
|
Some checks are pending
labwc.github.io / notify (push) Waiting to run
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. |
||
|---|---|---|
| .. | ||
| array.h | ||
| border.h | ||
| box.h | ||
| buf.h | ||
| dir.h | ||
| edge.h | ||
| fd-util.h | ||
| file-helpers.h | ||
| font.h | ||
| graphic-helpers.h | ||
| lab-scene-rect.h | ||
| list.h | ||
| macros.h | ||
| match.h | ||
| mem.h | ||
| node-type.h | ||
| nodename.h | ||
| parse-bool.h | ||
| parse-double.h | ||
| scene-helpers.h | ||
| set.h | ||
| spawn.h | ||
| string-helpers.h | ||
| xml.h | ||