removed strdup from g_string_append

This commit is contained in:
Dmitry Podgorny
2013-08-25 14:52:25 +03:00
parent d6c90ac7ca
commit c7ec06ff65
3 changed files with 12 additions and 12 deletions

View File

@@ -567,7 +567,7 @@ _roster_handle_push(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
while (resources != NULL) {
GString *fulljid = g_string_new(strdup(barejid));
g_string_append(fulljid, "/");
g_string_append(fulljid, strdup(resources->data));
g_string_append(fulljid, resources->data);
autocomplete_remove(fulljid_ac, fulljid->str);
g_string_free(fulljid, TRUE);
resources = g_list_next(resources);