Просмотр исходного кода

* fix heap block recycle flag when orphaning

git-svn-id: trunk@7805 -
micha 18 лет назад
Родитель
Сommit
afb5f32f65
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      rtl/inc/heap.inc

+ 2 - 3
rtl/inc/heap.inc

@@ -1482,10 +1482,9 @@ begin
     poc_next := poc^.next_free;
     { check if this os chunk was 'recycled' i.e. taken in use again }
     if (poc^.size and ocrecycleflag) = 0 then
-    begin
+      free_oschunk(loc_freelists, poc)
+    else
       poc^.size := poc^.size and not ocrecycleflag;
-      free_oschunk(loc_freelists, poc);
-    end;
     poc := poc_next;
   end;
   loc_freelists^.oslist := nil;