comparison libpurple/protocols/msn/slpmsg.c @ 31263:91ba047e838c

Remove msgs list from SlpMessage.
author masca@cpw.pidgin.im
date Tue, 22 Jun 2010 23:00:10 +0000
parents ede71a46ef16
children 471e9b81da41
comparison
equal deleted inserted replaced
31262:a743c25b27a8 31263:91ba047e838c
107 /* We don't want to free the data of the PurpleStoredImage, 107 /* We don't want to free the data of the PurpleStoredImage,
108 * but to avoid code duplication, it's sharing buffer. */ 108 * but to avoid code duplication, it's sharing buffer. */
109 if (slpmsg->img == NULL) 109 if (slpmsg->img == NULL)
110 g_free(slpmsg->buffer); 110 g_free(slpmsg->buffer);
111 111
112 #if 0
112 for (cur = slpmsg->msgs; cur != NULL; cur = g_list_delete_link(cur, cur)) 113 for (cur = slpmsg->msgs; cur != NULL; cur = g_list_delete_link(cur, cur))
113 { 114 {
114 /* Something is pointing to this slpmsg, so we should remove that 115 /* Something is pointing to this slpmsg, so we should remove that
115 * pointer to prevent a crash. */ 116 * pointer to prevent a crash. */
116 /* Ex: a user goes offline and after that we receive an ACK */ 117 /* Ex: a user goes offline and after that we receive an ACK */
122 msg->ack_data = NULL; 123 msg->ack_data = NULL;
123 msn_message_unref(msg); 124 msn_message_unref(msg);
124 } 125 }
125 126
126 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg); 127 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg);
128 #endif
127 129
128 for (cur = slpmsg->parts; cur != NULL; cur = g_list_delete_link(cur, cur)) 130 for (cur = slpmsg->parts; cur != NULL; cur = g_list_delete_link(cur, cur))
129 { 131 {
130 /* Something is pointing to this slpmsg, so we should remove that 132 /* Something is pointing to this slpmsg, so we should remove that
131 * pointer to prevent a crash. */ 133 * pointer to prevent a crash. */