1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Removed strdup passed to autocompleter

This commit is contained in:
James Booth 2015-02-06 22:03:40 +00:00
parent 1e35b76bf9
commit bec95afc8b

View File

@ -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