Mercurial > pidgin.yaz
diff libpurple/protocols/msn/slpmsg_part.c @ 31483: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 | 61db10475bed |
children | 0d5e038911a7 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpmsg_part.c Wed Dec 15 22:21:07 2010 +0000 +++ b/libpurple/protocols/msn/slpmsg_part.c Wed Dec 15 23:10:13 2010 +0000 @@ -81,17 +81,8 @@ return part; } -void msn_slpmsgpart_destroy(MsnSlpMessagePart *part) +static void msn_slpmsgpart_destroy(MsnSlpMessagePart *part) { - if (!part) - return; - - if (part->ref_count > 0) { - msn_slpmsgpart_unref(part); - - return; - } - g_free(part->header); g_free(part->footer);