Mercurial > pidgin
comparison libpurple/protocols/msn/msg.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 | 05c14f037414 |
children | a8cc50c2279f |
comparison
equal
deleted
inserted
replaced
31035:fa9b2cf68b9b | 31036:05e05d96ba75 |
---|---|
68 g_free(msg->content_type); | 68 g_free(msg->content_type); |
69 g_free(msg->charset); | 69 g_free(msg->charset); |
70 | 70 |
71 g_hash_table_destroy(msg->header_table); | 71 g_hash_table_destroy(msg->header_table); |
72 g_list_free(msg->header_list); | 72 g_list_free(msg->header_list); |
73 msn_slpmsgpart_destroy(msg->part); | 73 if (msg->part) |
74 msn_slpmsgpart_unref(msg->part); | |
74 | 75 |
75 g_free(msg); | 76 g_free(msg); |
76 } | 77 } |
77 | 78 |
78 MsnMessage * | 79 MsnMessage * |