diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-02-19 21:21:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 21:21:05 +0100 |
commit | 8952a89db588db10a9dba16356f9bbd35ca5fabb (patch) | |
tree | ac34d55b77303deadef6a7ed3f4202259324a249 /src/nvim/ops.c | |
parent | 8fdc84d0aaec63d57203bdef4b88047479ad4fc1 (diff) | |
parent | 404707c7606389ccb6c6062bfe9e2ff30a2552af (diff) | |
download | rneovim-8952a89db588db10a9dba16356f9bbd35ca5fabb.tar.gz rneovim-8952a89db588db10a9dba16356f9bbd35ca5fabb.tar.bz2 rneovim-8952a89db588db10a9dba16356f9bbd35ca5fabb.zip |
Merge pull request #27534 from bfredl/userarena
refactor(api): next PR to make use of the arena
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index f91df49e4f..e7a3aa29aa 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -6499,8 +6499,6 @@ bool prepare_yankreg_from_object(yankreg_T *reg, String regtype, size_t lines) } } - reg->y_array = xcalloc(lines, sizeof(uint8_t *)); - reg->y_size = lines; reg->additional_data = NULL; reg->timestamp = 0; return true; @@ -6513,7 +6511,6 @@ void finish_yankreg_from_object(yankreg_T *reg, bool clipboard_adjust) // but otherwise there is no line after the final newline if (reg->y_type != kMTCharWise) { if (reg->y_type == kMTUnknown || clipboard_adjust) { - xfree(reg->y_array[reg->y_size - 1]); reg->y_size--; } if (reg->y_type == kMTUnknown) { |