mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 13:19:43 +03:00
memory: plug a leak, by freeing the cutbuffer after a bracketed paste
Also, remove an unneeded assignment -- the 'cutbottom' variable is needed only when consecutives cuts (^K) or copies (M-6) are made.
This commit is contained in:
parent
d1521c584d
commit
9f1c3c8513
@ -1483,10 +1483,9 @@ void suck_up_input_and_paste_it(void)
|
||||
beep();
|
||||
}
|
||||
|
||||
cutbottom = line;
|
||||
|
||||
paste_text();
|
||||
|
||||
free_lines(cutbuffer);
|
||||
cutbuffer = was_cutbuffer;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user