We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e15b1 commit 1edbc40Copy full SHA for 1edbc40
zathura/dbus-interface.c
@@ -506,9 +506,8 @@ static GVariant* json_document_info(zathura_t* zathura) {
506
507
json_builder_end_object(builder);
508
509
- JsonNode* root = json_builder_get_root(builder);
+ g_autoptr(JsonNode) root = json_builder_get_root(builder);
510
char* serialized_root = json_to_string(root, true);
511
- json_node_free(root);
512
513
return g_variant_new_take_string(serialized_root);
514
}
0 commit comments