removed strdup in autocomplete calls

This commit is contained in:
Dmitry Podgorny
2013-08-26 03:29:50 +03:00
parent 982f1174a8
commit 545a23e92f
8 changed files with 112 additions and 127 deletions

View File

@@ -57,7 +57,7 @@ muc_init(void)
void
muc_add_invite(char *room)
{
autocomplete_add(invite_ac, strdup(room));
autocomplete_add(invite_ac, room);
}
void
@@ -298,7 +298,7 @@ muc_add_to_roster(const char * const room, const char * const nick,
if (old == NULL) {
updated = TRUE;
autocomplete_add(chat_room->nick_ac, strdup(nick));
autocomplete_add(chat_room->nick_ac, nick);
} else if ((g_strcmp0(p_contact_presence(old), show) != 0) ||
(g_strcmp0(p_contact_status(old), status) != 0)) {
updated = TRUE;