# HG changeset patch # User Mark Doliner # Date 1271969484 0 # Node ID de59c181e6aa716242264cc5dc7f4b6daceb7d62 # Parent 5a70b5364229519298b4d9626f2ea38aab22e5c9 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 diff -r 5a70b5364229 -r de59c181e6aa libpurple/protocols/msn/user.c --- a/libpurple/protocols/msn/user.c Thu Apr 22 18:09:44 2010 +0000 +++ b/libpurple/protocols/msn/user.c Thu Apr 22 20:51:24 2010 +0000 @@ -230,7 +230,6 @@ static void free_user_endpoint(MsnUserEndpoint *data) { - g_free(data->id); g_free(data->name); g_free(data); } @@ -255,7 +254,6 @@ new = g_hash_table_lookup(user->endpoints, endpoint); if (!new) { new = g_new0(MsnUserEndpoint, 1); - new->id = g_strdup(endpoint); g_hash_table_insert(user->endpoints, g_strdup(endpoint), new); } diff -r 5a70b5364229 -r de59c181e6aa libpurple/protocols/msn/user.h --- a/libpurple/protocols/msn/user.h Thu Apr 22 18:09:44 2010 +0000 +++ b/libpurple/protocols/msn/user.h Thu Apr 22 20:51:24 2010 +0000 @@ -122,7 +122,6 @@ * A specific user endpoint. */ typedef struct MsnUserEndpoint { - char *id; /**< The client's endpoint ID */ char *name; /**< The client's endpoint's name */ int type; /**< The client's endpoint type */ guint clientid; /**< The client's ID */