Browse Source

* Hunted down another node pool bug, thanks to Vincent Snijders and mighty valgrind. Due to wrong condition, the last block of extent wasn't used to put an object there, but later a cleanup attempt at that address was attempted.

git-svn-id: trunk@13824 -
sergei 16 years ago
parent
commit
d156a08593
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-xml/src/dom.pp

+ 1 - 1
packages/fcl-xml/src/dom.pp

@@ -3339,7 +3339,7 @@ begin
   end
   end
   else
   else
   begin
   begin
-    if PAnsiChar(FCurrBlock) = PAnsiChar(FCurrExtent) + sizeof(TExtent) then
+    if PAnsiChar(FCurrBlock) < PAnsiChar(FCurrExtent) + sizeof(TExtent) then
       AddExtent(FCurrExtentSize * 2);
       AddExtent(FCurrExtentSize * 2);
     Result := FCurrBlock;
     Result := FCurrBlock;
     Dec(PAnsiChar(FCurrBlock), FElementSize);
     Dec(PAnsiChar(FCurrBlock), FElementSize);