Mercurial > pidgin.yaz
changeset 19388:1c97caf1ebbb
xmlnode bugfix patch from Mauro Brasil
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 23 Aug 2007 21:20:49 +0000 |
parents | 3bc55836f621 |
children | 994d36743cbb |
files | libpurple/xmlnode.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/xmlnode.c Thu Aug 23 20:03:00 2007 +0000 +++ b/libpurple/xmlnode.c Thu Aug 23 21:20:49 2007 +0000 @@ -272,6 +272,8 @@ if(NULL != node->parent) { if(node->parent->child == node) { node->parent->child = node->next; + if (node->parent->lastchild == node) + node->parent->lastchild = node->next; } else { xmlnode *prev = node->parent->child; while(prev && prev->next != node) { @@ -279,6 +281,8 @@ } if(prev) { prev->next = node->next; + if (node->parent->lastchild == node) + node->parent->lastchild = prev; } } }