mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval/decode,shada: Do not forget to clean up converters
This commit is contained in:
parent
3fd9b70c48
commit
e586047a53
@ -892,6 +892,7 @@ json_decode_string_fail:
|
||||
tv_clear(&(kv_pop(stack).val));
|
||||
}
|
||||
json_decode_string_ret:
|
||||
convert_setup(&conv, NULL, NULL);
|
||||
kv_destroy(stack);
|
||||
kv_destroy(container_stack);
|
||||
return ret;
|
||||
|
@ -709,6 +709,7 @@ static ptrdiff_t write_file(ShaDaWriteDef *const sd_writer,
|
||||
static void close_sd_reader(ShaDaReadDef *const sd_reader)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
convert_setup(&sd_reader->sd_conv, NULL, NULL);
|
||||
close_file(sd_reader->cookie);
|
||||
}
|
||||
|
||||
@ -716,6 +717,7 @@ static void close_sd_reader(ShaDaReadDef *const sd_reader)
|
||||
static void close_sd_writer(ShaDaWriteDef *const sd_writer)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
convert_setup(&sd_writer->sd_conv, NULL, NULL);
|
||||
close_file(sd_writer->cookie);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user