about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-07-14 23:31:02 +0100
committerJames Booth <boothj5@gmail.com>2013-07-14 23:31:02 +0100
commitdd2e3a0bdf958a84f063a62b2fbf6ff7c04c0b8d (patch)
treecd9684e3931dceec0662eba010185256b51c25f8
parent7f82dc42f593f6410e4d0058add4b91112047e63 (diff)
parent0b221bde2055766410b3392edd958ef45e47671c (diff)
downloadprofani-tty-dd2e3a0bdf958a84f063a62b2fbf6ff7c04c0b8d.tar.gz
Merge remote-tracking branch 'dmitry/fixes'
-rw-r--r--src/command/command.c4
-rw-r--r--src/tools/autocomplete.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 60fe6d6d..f15de124 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -2780,7 +2780,7 @@ _cmd_rooms(gchar **args, struct cmd_help_t help)
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
     if (conn_status != JABBER_CONNECTED) {
-        cons_show("You are currenlty connect.");
+        cons_show("You are not currenlty connected.");
         return TRUE;
     }
 
@@ -2804,7 +2804,7 @@ _cmd_disco(gchar **args, struct cmd_help_t help)
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
     if (conn_status != JABBER_CONNECTED) {
-        cons_show("You are currenlty connect.");
+        cons_show("You are not currenlty connected.");
         return TRUE;
     }
 
diff --git a/src/tools/autocomplete.c b/src/tools/autocomplete.c
index 4b25edd6..0c56cac7 100644
--- a/src/tools/autocomplete.c
+++ b/src/tools/autocomplete.c
@@ -69,8 +69,7 @@ void
 autocomplete_free(Autocomplete ac)
 {
     autocomplete_clear(ac);
-    g_free(ac);
-    ac = NULL;
+    free(ac);
 }
 
 gint