From 23aaa51a2af836d705a49bde561d9b8431695499 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Feb 2015 19:59:04 +0000 Subject: [PATCH] Free utf8 substrings for delete word (ctrl-w) --- src/ui/inputwin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 85ddc79a..b2d5e420 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -747,6 +747,9 @@ _delete_previous_word(void) input_len_bytes = strlen(start_string)+i; input[input_len_bytes] = '\0'; + g_free(start_string); + g_free(end_string); + _clear_input(); waddstr(inp_win, input); wmove(inp_win, 0, start_del);