# HG changeset patch # User masca@cpw.pidgin.im # Date 1277247257 0 # Node ID a743c25b27a8c8f8faffd8e120eefff9b4a4937c # Parent ede71a46ef165af6b9c7ae655bf58623fe836e3f Destroying Parts return silently when it's passed a NULL pointer. diff -r ede71a46ef16 -r a743c25b27a8 libpurple/protocols/msn/slpmsg_part.c --- a/libpurple/protocols/msn/slpmsg_part.c Tue Jun 22 22:44:28 2010 +0000 +++ b/libpurple/protocols/msn/slpmsg_part.c Tue Jun 22 22:54:17 2010 +0000 @@ -57,6 +57,9 @@ void msn_slpmsgpart_destroy(MsnSlpMessagePart *part) { + if (!part) + return; + g_free(part->header); g_free(part->footer);