Browse Source

* Fix memleak on refresh, spare record initialized twice

git-svn-id: trunk@38817 -
michael 7 years ago
parent
commit
8f717ed66a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/fcl-db/src/base/bufdataset.pas

+ 3 - 2
packages/fcl-db/src/base/bufdataset.pas

@@ -2238,9 +2238,10 @@ begin
     InitialiseIndex;
     F.SetIndexProperties;
     end;
-  if Active then
+  if Active  then
     begin
-    B.InitialiseSpareRecord(IntAllocRecordBuffer);
+    if not Refreshing then
+      B.InitialiseSpareRecord(IntAllocRecordBuffer);
     if (F.Fields<>'') then
       BuildIndex(B);
     end