From bec95afc8b4ba3d86b0a74d68285042c7c40948e Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 6 Feb 2015 22:03:40 +0000 Subject: [PATCH] Removed strdup passed to autocompleter --- src/contact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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