mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Removed strdup passed to autocompleter
This commit is contained in:
parent
1e35b76bf9
commit
bec95afc8b
@ -381,7 +381,7 @@ void
|
|||||||
p_contact_set_presence(const PContact contact, Resource *resource)
|
p_contact_set_presence(const PContact contact, Resource *resource)
|
||||||
{
|
{
|
||||||
g_hash_table_replace(contact->available_resources, strdup(resource->name), 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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user