Mercurial > pidgin
comparison libpurple/protocols/msn/slpmsg.c @ 31036:05e05d96ba75
Use the unref functions everywhere, instead of destroy. I also removed
some unnecessary checks in the destroy functions, since it's already
OK from the unref.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 15 Dec 2010 23:10:13 +0000 |
parents | 72e6fa6caecc |
children | 7b771e6f1142 |
comparison
equal
deleted
inserted
replaced
31035:fa9b2cf68b9b | 31036:05e05d96ba75 |
---|---|
83 MsnSlpMessagePart *part = cur->data; | 83 MsnSlpMessagePart *part = cur->data; |
84 | 84 |
85 part->ack_cb = NULL; | 85 part->ack_cb = NULL; |
86 part->nak_cb = NULL; | 86 part->nak_cb = NULL; |
87 part->ack_data = NULL; | 87 part->ack_data = NULL; |
88 msn_slpmsgpart_destroy(part); | 88 msn_slpmsgpart_unref(part); |
89 } | 89 } |
90 | 90 |
91 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg); | 91 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg); |
92 | 92 |
93 g_free(slpmsg->header); | 93 g_free(slpmsg->header); |