Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/oob.c @ 28289:db99cde1845c
Fix crashes when filenames end up being NULL in some prpls. Fixed a minor
leak in MSNP9 while we're at it.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 16 Aug 2009 23:46:15 +0000 |
parents | c8606917787a |
children | c585572e80dd |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/oob.c Sun Aug 16 23:28:12 2009 +0000 +++ b/libpurple/protocols/jabber/oob.c Sun Aug 16 23:46:15 2009 +0000 @@ -207,7 +207,10 @@ url = xmlnode_get_data(urlnode); jox = g_new0(JabberOOBXfer, 1); - purple_url_parse(url, &jox->address, &jox->port, &jox->page, NULL, NULL); + if (!purple_url_parse(url, &jox->address, &jox->port, &jox->page, NULL, NULL)) { + g_free(url); + return; + } g_free(url); jox->js = js; jox->headers = g_string_new("");