summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-text/gui-readline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 32ae7abe..46cafc18 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -305,8 +305,10 @@ static void key_yank_from_cutbuffer(void)
char *cutbuffer;
cutbuffer = gui_entry_get_cutbuffer(active_entry);
- if (cutbuffer != NULL)
+ if (cutbuffer != NULL) {
gui_entry_insert_text(active_entry, cutbuffer);
+ g_free(cutbuffer);
+ }
}
static void key_transpose_characters(void)