[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/rendering
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2010-02-22 19:12:41
Message-ID: 1266865961.541679.1071.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1094434 by ggarand:

InlineBox::deleteLine shouldn't try to remove() the line box before
disposing of it.

This causes crashes in release mode because remove() will call to a
possibly invalid parent (this parent-is-invalid circumstance isn't fully
clear to me, though), the link to which is only nulled out in
Debug mode.

Let's play this low risk : align Release on Debug for branch backport...

BUG: 193717
BUG: 206832

 M  +0 -2      render_line.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_line.cpp #1094433:1094434
@@ -203,9 +203,7 @@
     while (child) {
         assert(this == child->parent());
         next = child->nextOnLine();
-#ifndef NDEBUG
         child->setParent(0);
-#endif
         child->deleteLine(arena);
         child = next;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic