diff options
author | James Booth <boothj5@gmail.com> | 2015-02-09 19:59:04 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-02-09 19:59:04 +0000 |
commit | 23aaa51a2af836d705a49bde561d9b8431695499 (patch) | |
tree | b90669ff43d6aa83611dda87a5c087a1ec4e74e0 /src | |
parent | 268c33e1c6e7ee5a4a26299311289933c66460e2 (diff) | |
download | profani-tty-23aaa51a2af836d705a49bde561d9b8431695499.tar.gz |
Free utf8 substrings for delete word (ctrl-w)
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/inputwin.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |