Mercurial > pidgin
comparison libpurple/protocols/msn/slplink.c @ 20420:8aa5e490dbf7
switchboards really can be referenced by multiple slplinks, I have no idea
why this GList was replaced with a single slplink in msnp14 but it's
possible that it was causing some problems.
References #1142
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 20 May 2007 16:30:39 +0000 |
parents | 0f6747c5dcc2 |
children | 637e080758a9 |
comparison
equal
deleted
inserted
replaced
20419:c2b406b4ccd7 | 20420:8aa5e490dbf7 |
---|---|
100 #endif | 100 #endif |
101 | 101 |
102 g_return_if_fail(slplink != NULL); | 102 g_return_if_fail(slplink != NULL); |
103 | 103 |
104 if (slplink->swboard != NULL) | 104 if (slplink->swboard != NULL) |
105 slplink->swboard->slplink = NULL; | 105 slplink->swboard->slplinks = g_list_remove(slplink->swboard->slplinks, slplink); |
106 | 106 |
107 session = slplink->session; | 107 session = slplink->session; |
108 | 108 |
109 if (slplink->local_user != NULL) | 109 if (slplink->local_user != NULL) |
110 g_free(slplink->local_user); | 110 g_free(slplink->local_user); |
257 | 257 |
258 if (slplink->swboard == NULL) | 258 if (slplink->swboard == NULL) |
259 return; | 259 return; |
260 | 260 |
261 /* If swboard is destroyed we will be too */ | 261 /* If swboard is destroyed we will be too */ |
262 slplink->swboard->slplink = slplink; | 262 slplink->swboard->slplinks = g_list_prepend(slplink->swboard->slplinks, slplink); |
263 } | 263 } |
264 | 264 |
265 msn_switchboard_send_msg(slplink->swboard, msg, TRUE); | 265 msn_switchboard_send_msg(slplink->swboard, msg, TRUE); |
266 } | 266 } |
267 } | 267 } |