Browse Source

* free the old block in win16 global heap reallocmem

git-svn-id: trunk@37639 -
nickysn 7 years ago
parent
commit
ea8fc43f52
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/win16/glbheap.inc

+ 1 - 0
rtl/win16/glbheap.inc

@@ -372,6 +372,7 @@ circular linked list.
               { todo: do it in a more optimal way? }
               { todo: do it in a more optimal way? }
               result:=SysGlobalAllocMem(size);
               result:=SysGlobalAllocMem(size);
               Move(p^,result^,SysGlobalMemSize(p));
               Move(p^,result^,SysGlobalMemSize(p));
+              SysGlobalFreeMem(p);
             end;
             end;
         p := result;
         p := result;
       end;
       end;