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