mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -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. |
||
|---|---|---|
| .. | ||
| box.c | ||
| buf.c | ||
| dir.c | ||
| edge.c | ||
| fd-util.c | ||
| file-helpers.c | ||
| font.c | ||
| gen-color-table.pl | ||
| graphic-helpers.c | ||
| lab-scene-rect.c | ||
| match.c | ||
| mem.c | ||
| meson.build | ||
| node-type.c | ||
| nodename.c | ||
| parse-bool.c | ||
| parse-double.c | ||
| rgb.txt | ||
| scene-helpers.c | ||
| set.c | ||
| spawn.c | ||
| string-helpers.c | ||
| xcolor-table.h | ||
| xml.c | ||