comparison src/protocols/msn/slpmsg.c @ 10306:56cc5d49472b

[gaim-migrate @ 11492] " Well, I found a bug, and even though I had code to prevent that crash it seems it did not. So now here is in a different way, which by the way is more efficient." --Felipe Contreras (19:35:44) shx: LSchiere: there's a bugfix patch for msn in the tracker if it interest you ;) (19:35:59) LSchiere: the one i assigned to nosnilmot just a little bit ago? (19:36:24) shx: LSchiere: probably (19:38:25) LSchiere: i just remembered to day is release day (19:38:51) shx: yeap... so I tought it was important to commit it also, i rather like being able to compile committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 03 Dec 2004 00:57:21 +0000
parents f776e117c17b
children 2e01c503aa4f
comparison
equal deleted inserted replaced
10305:9bfcb5eb12bd 10306:56cc5d49472b
63 */ 63 */
64 #endif 64 #endif
65 65
66 if (slpmsg->msg != NULL) 66 if (slpmsg->msg != NULL)
67 { 67 {
68 /* Something is pointing to this slpmsg, so we should remove that
69 * pointer to prevent a crash. */
70 /* Ex: a user goes offline and after that we receive an ACK */
71
72 gaim_debug_info("msn", "Unlink slpmsg callbacks.\n");
73
74 slpmsg->msg->ack_cb = NULL;
75 slpmsg->msg->ack_data = NULL;
76
77 #if 0
68 MsnTransaction *trans; 78 MsnTransaction *trans;
69 79
70 trans = slpmsg->msg->trans; 80 trans = slpmsg->msg->trans;
71 81
72 if (trans != NULL) 82 if (trans != NULL)
73 { 83 {
74 /* Something is pointing to this slpmsg, so we should remove that
75 * pointer to prevent a crash. */
76
77 if (trans->callbacks != NULL && trans->has_custom_callbacks) 84 if (trans->callbacks != NULL && trans->has_custom_callbacks)
78 g_hash_table_destroy(trans->callbacks); 85 g_hash_table_destroy(trans->callbacks);
79 86
80 trans->callbacks = NULL; 87 trans->callbacks = NULL;
81 trans->data = NULL; 88 trans->data = NULL;
82 } 89 }
90 #endif
83 } 91 }
84 92
85 slplink->slp_msgs = 93 slplink->slp_msgs =
86 g_list_remove(slplink->slp_msgs, slpmsg); 94 g_list_remove(slplink->slp_msgs, slpmsg);
87 95