From f6b6bc47d619fd675c74c563c3e76152e0b64307 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 29 Jan 2020 11:19:34 +0100 Subject: [PATCH] tweaks: remove a redundant call, as there is nothing to free there At that point, 'u->cutbuffer' will always be NULL, either from the original creation of the INSERT undo item, or by having been freed and set to NULL by do_redo(). --- src/text.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/text.c b/src/text.c index a15de98b..e7d5cee9 100644 --- a/src/text.c +++ b/src/text.c @@ -627,7 +627,6 @@ void do_undo(void) openfile->mark_x = u->mark_begin_x; goto_line_posx(u->lineno, u->begin); cut_marked(NULL); - free_lines(u->cutbuffer); u->cutbuffer = cutbuffer; cutbuffer = oldcutbuffer; break;