about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-09 19:59:04 +0000
committerJames Booth <boothj5@gmail.com>2015-02-09 19:59:04 +0000
commit23aaa51a2af836d705a49bde561d9b8431695499 (patch)
treeb90669ff43d6aa83611dda87a5c087a1ec4e74e0 /src
parent268c33e1c6e7ee5a4a26299311289933c66460e2 (diff)
downloadprofani-tty-23aaa51a2af836d705a49bde561d9b8431695499.tar.gz
Free utf8 substrings for delete word (ctrl-w)
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c3
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);