Mercurial > pidgin.yaz
diff libpurple/protocols/simple/simple.c @ 30138:62cc2156961f
simple: sipmsg_free() can't handle NULL. Reported by Jochen
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 14 Apr 2010 19:57:09 +0000 |
parents | 6e2a246a8d74 |
children | 2a436e0ce977 |
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c Tue Apr 13 06:03:35 2010 +0000 +++ b/libpurple/protocols/simple/simple.c Wed Apr 14 19:57:09 2010 +0000 @@ -1671,8 +1671,10 @@ buffer[len] = '\0'; purple_debug_info("simple", "\n\nreceived - %s\n######\n%s\n#######\n\n", ctime(&currtime), buffer); msg = sipmsg_parse_msg(buffer); - if(msg) process_input_message(sip, msg); - sipmsg_free(msg); + if (msg) { + process_input_message(sip, msg); + sipmsg_free(msg); + } } }