about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-06 22:03:40 +0000
committerJames Booth <boothj5@gmail.com>2015-02-06 22:03:40 +0000
commitbec95afc8b4ba3d86b0a74d68285042c7c40948e (patch)
tree9187afc5920ccb5d891ff08df6e9eec45dc093fe /src
parent1e35b76bf9767667c0a2dafb7d016a34ae6cac33 (diff)
downloadprofani-tty-bec95afc8b4ba3d86b0a74d68285042c7c40948e.tar.gz
Removed strdup passed to autocompleter
Diffstat (limited to 'src')
-rw-r--r--src/contact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contact.c b/src/contact.c
index f16f1679..943be374 100644
--- a/src/contact.c
+++ b/src/contact.c
@@ -381,7 +381,7 @@ void
 p_contact_set_presence(const PContact contact, Resource *resource)
 {
     g_hash_table_replace(contact->available_resources, strdup(resource->name), resource);
-    autocomplete_add(contact->resource_ac, strdup(resource->name));
+    autocomplete_add(contact->resource_ac, resource->name);
 }
 
 void