libpurple/protocols/jabber/chat.c

changeset 23130
7193be04646f
parent 22919
7b15508000be
child 23302
cbe5a85c6c32
equal deleted inserted replaced
23129:f2be0f621ef6 23130:7193be04646f
93 93
94 JabberChat *jabber_chat_find(JabberStream *js, const char *room, 94 JabberChat *jabber_chat_find(JabberStream *js, const char *room,
95 const char *server) 95 const char *server)
96 { 96 {
97 JabberChat *chat = NULL; 97 JabberChat *chat = NULL;
98 char *room_jid;
99 98
100 if(NULL != js->chats) 99 if(NULL != js->chats)
101 { 100 {
102 room_jid = g_strdup_printf("%s@%s", room, server); 101 char *room_jid = g_strdup_printf("%s@%s", room, server);
103 102
104 chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid)); 103 chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid));
105 g_free(room_jid); 104 g_free(room_jid);
106 } 105 }
107 106

mercurial