changeset 31262:a743c25b27a8

Destroying Parts return silently when it's passed a NULL pointer.
author masca@cpw.pidgin.im
date Tue, 22 Jun 2010 22:54:17 +0000
parents ede71a46ef16
children 91ba047e838c
files libpurple/protocols/msn/slpmsg_part.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);