Skip to content

clutter/keyval: Fix keyval_name() transfer annotation

Florian Müllner requested to merge fmuellner/mutter:keyval-name-crash into main

clutter_keyval_name() returns a pointer to a static array, not newly allocated memory. Add a transfer annotation to indicate that callers must not free the returned memory.

While add it, make the return value const to stress further that callers shouldn't touch the returned memory.

Merge request reports