Projects
Essentials
lightspark
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 124
View file
lightspark.spec
Changed
@@ -20,7 +20,7 @@ %bcond_without librtmp Name: lightspark -Version: 0.7.2.99+git20161106.1119 +Version: 0.7.2.99+git20161106.1842 Release: 0 Summary: Modern, free, open-source flash player implementation License: LGPL-3.0+
View file
lightspark.tar.xz/src/scripting/toplevel/XMLList.cpp
Changed
@@ -861,20 +861,27 @@ if(XML::isValidMultiname(getSystemState(),name,index)) { _R<XML> node = nodes[index]; - if (node->parentNode) + if (!node->parentNode.isNull() && node->parentNode->childrenlist.getPtr() != this) { - XMLList::XMLListVector::iterator it = node->parentNode->childrenlist->nodes.end(); - while (it != node->parentNode->childrenlist->nodes.begin()) + // the node to remove is also added to another list, so it has to be deleted there, too + if (node->parentNode) { - it--; - _R<XML> n = *it; - if (n.getPtr() == node.getPtr()) + XMLList::XMLListVector::iterator it = node->parentNode->childrenlist->nodes.end(); + while (it != node->parentNode->childrenlist->nodes.begin()) { - node->parentNode->childrenlist->nodes.erase(it); - break; + it--; + _R<XML> n = *it; + if (n.getPtr() == node.getPtr()) + { + node->parentNode->childrenlist->nodes.erase(it); + bdeleted = true; + break; + } } } } + this->nodes.erase(this->nodes.begin()+index); + bdeleted = true; } else {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.