Skip to content

parser: fix double-free in example snippet

The json_parser_get_root() method is annotated (transfer none), but the example uses an auto-cleanup that results in a double-free.

Remove g_autoptr() from the JsonNode variable in the example for JsonParser, to fix the snippet and prevent any confusion.

Merge request reports