[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kjs
From: Germain Garand <germain () ebooksfrance ! com>
Date: 2006-03-10 14:10:51
Message-ID: 1141999851.692330.6555.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 517265 by ggarand:
check if the Interpreter isn't already in the Debugger's list before attaching.
(khtml's debugger use to attach the same interpreter a few billion times ;( )
Reviewed by Harri
M +4 -1 debugger.cpp
--- branches/KDE/3.5/kdelibs/kjs/debugger.cpp #517264:517265
@@ -67,8 +67,11 @@
rep->interps = new AttachedInterpreter(interp);
else {
AttachedInterpreter *ai = rep->interps;
- while (ai->next)
+ while (ai->next) {
+ if (ai->interp == interp)
+ return; // already in list
ai = ai->next;
+ }
ai->next = new AttachedInterpreter(interp);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic