فهرست منبع

* 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 سال پیش
والد
کامیت
d156a08593
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);