Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/user.c @ 31163:de59c181e6aa
MsnUserEndpoint->id isn't actually used, so let's not store it in the
struct. It's used as the key in the endpoints hashtable, so hopefully
we can get away with keeping only one copy of it
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 22 Apr 2010 20:51:24 +0000 |
parents | 6376fc7a092e |
children | 2a5dbea6ab6b |
comparison
equal
deleted
inserted
replaced
31162:5a70b5364229 | 31163:de59c181e6aa |
---|---|
228 } | 228 } |
229 | 229 |
230 static void | 230 static void |
231 free_user_endpoint(MsnUserEndpoint *data) | 231 free_user_endpoint(MsnUserEndpoint *data) |
232 { | 232 { |
233 g_free(data->id); | |
234 g_free(data->name); | 233 g_free(data->name); |
235 g_free(data); | 234 g_free(data); |
236 } | 235 } |
237 | 236 |
238 void | 237 void |
253 } | 252 } |
254 | 253 |
255 new = g_hash_table_lookup(user->endpoints, endpoint); | 254 new = g_hash_table_lookup(user->endpoints, endpoint); |
256 if (!new) { | 255 if (!new) { |
257 new = g_new0(MsnUserEndpoint, 1); | 256 new = g_new0(MsnUserEndpoint, 1); |
258 new->id = g_strdup(endpoint); | |
259 g_hash_table_insert(user->endpoints, g_strdup(endpoint), new); | 257 g_hash_table_insert(user->endpoints, g_strdup(endpoint), new); |
260 } | 258 } |
261 | 259 |
262 new->clientid = data->clientid; | 260 new->clientid = data->clientid; |
263 new->extcaps = data->extcaps; | 261 new->extcaps = data->extcaps; |