comparison src/protocols/msn/switchboard.c @ 13967:99b9b58b19dd

[gaim-migrate @ 16523] Fix a crazy MSN crash. Basically it's possible to have more than one slplink associated with a given switchboard, but our code did not allow for that. I think it happens when you're in a multi-user chat and you do stuff with multiple users that involves slplinks. Like maybe file transfer and buddy icon related stuff. Tracking this down took an ungodly amount of time, but thanks to Meebo for letting me do it :-) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Jul 2006 07:31:15 +0000
parents 967ef719cb62
children
comparison
equal deleted inserted replaced
13966:80cbf6c2d562 13967:99b9b58b19dd
80 return; 80 return;
81 81
82 swboard->destroying = TRUE; 82 swboard->destroying = TRUE;
83 83
84 /* If it linked us is because its looking for trouble */ 84 /* If it linked us is because its looking for trouble */
85 if (swboard->slplink != NULL) 85 while (swboard->slplinks != NULL)
86 msn_slplink_destroy(swboard->slplink); 86 msn_slplink_destroy(swboard->slplinks->data);
87 87
88 /* Destroy the message queue */ 88 /* Destroy the message queue */
89 while ((msg = g_queue_pop_head(swboard->msg_queue)) != NULL) 89 while ((msg = g_queue_pop_head(swboard->msg_queue)) != NULL)
90 { 90 {
91 if (swboard->error != MSN_SB_ERROR_NONE) 91 if (swboard->error != MSN_SB_ERROR_NONE)