about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-11-24 00:29:02 +0000
committerJames Booth <boothj5@gmail.com>2014-11-24 00:29:02 +0000
commit05664ef00996f6998b4eecf5145ad9e158d10ed7 (patch)
treef2f2fae5f984c0225d8de371967874051faffe54 /src/profanity.c
parentf486b5884b79cb3ed0d7c4e732b56e73e9236a77 (diff)
downloadprofani-tty-05664ef00996f6998b4eecf5145ad9e158d10ed7.tar.gz
Free string after setting theme ui preference, fixed valgrind warning
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 64d3eca4..2514bc50 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -114,14 +114,14 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
                 g_timer_start(timer);
             }
 
+            ch = ui_get_char(inp, &size, &result);
+
             ui_handle_special_keys(&ch, result);
 #ifdef HAVE_LIBOTR
             otr_poll();
 #endif
             jabber_process_events();
             ui_update();
-
-            ch = ui_get_char(inp, &size, &result);
         }
 
         inp[size++] = '\0';