SVN commit 1025797 by orlovich: Fix crash in runAdFilter --- take in account that when we're removing a node its kids will be removed as well... BUG: 192308 M +5 -1 khtml_part.cpp --- branches/KDE/4.3/kdelibs/khtml/khtml_part.cpp #1025796:1025797 @@ -6576,7 +6576,11 @@ { if ( KHTMLGlobal::defaultHTMLSettings()->isAdFiltered( d->m_doc->completeURL( static_cast(node)->getAttribute(ATTR_SRC).string() ) ) ) { - // We found an IMG, IFRAME or INPUT (of type IMAGE) matching a filter. + // Since any kids of node will be deleted, too, fastforward nextNode + // until we get outside of node. + while (nextNode && nextNode->isAncestor(node)) + nextNode = nextNode->traverseNextNode(); + node->ref(); NodeImpl *parent = node->parent(); if( parent )