diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command/command.c | 4 | ||||
-rw-r--r-- | src/contact.c | 2 | ||||
-rw-r--r-- | src/ui/window.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/command/command.c b/src/command/command.c index bed6e396..20063616 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1466,10 +1466,6 @@ cmd_init(void) autocomplete_add(time_ac, "seconds"); autocomplete_add(time_ac, "off"); - time_ac = autocomplete_new(); - autocomplete_add(time_ac, "minutes"); - autocomplete_add(time_ac, "seconds"); - resource_ac = autocomplete_new(); autocomplete_add(resource_ac, "set"); autocomplete_add(resource_ac, "off"); 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 diff --git a/src/ui/window.c b/src/ui/window.c index 46d2e85c..e235dda5 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -331,6 +331,7 @@ win_free(ProfWin* window) buffer_free(window->layout->buffer); delwin(window->layout->win); } + free(window->layout); if (window->type == WIN_CHAT) { ProfChatWin *chatwin = (ProfChatWin*)window; |