Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c Wed Dec 15 22:21:07 2010 +0000 +++ b/libpurple/protocols/msn/msg.c Wed Dec 15 23:10:13 2010 +0000 @@ -70,7 +70,8 @@ g_hash_table_destroy(msg->header_table); g_list_free(msg->header_list); - msn_slpmsgpart_destroy(msg->part); + if (msg->part) + msn_slpmsgpart_unref(msg->part); g_free(msg); }