soc.2010.msn-tlc: 5eb804b6: Destroying Parts return silently when it...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Thu Jun 24 02:16:39 EDT 2010


-----------------------------------------------------------------
Revision: 5eb804b69f1e0178ee1fc4f330757386133b2256
Ancestor: b81a6f79809ae0b0f6f4a31c88b66be7901d34b8
Author: masca at cpw.pidgin.im
Date: 2010-06-22T22:54:17
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/5eb804b69f1e0178ee1fc4f330757386133b2256

Modified files:
        libpurple/protocols/msn/slpmsg_part.c

ChangeLog: 

Destroying Parts return silently when it's passed a NULL pointer.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg_part.c	f1195a6c928de9fe2f9d61d7d1b0ee040ebf0ada
+++ libpurple/protocols/msn/slpmsg_part.c	f122ea576693ee08af4b57119c90d95053b2be0f
@@ -57,6 +57,9 @@ void msn_slpmsgpart_destroy(MsnSlpMessag
 
 void msn_slpmsgpart_destroy(MsnSlpMessagePart *part)
 {
+	if (!part)
+		return;
+
 	g_free(part->header);
 	g_free(part->footer);
 


More information about the Commits mailing list