Browse Source

* Metadata and rows are raw JSON object, freeandnil will not work

michael 7 years ago
parent
commit
f13f7c6167
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-db/jsondataset.pas

+ 2 - 2
packages/fcl-db/jsondataset.pas

@@ -374,8 +374,8 @@ procedure TBaseJSONDataSet.FreeData;
 begin
   If FOwnsData then
     begin
-    FreeAndNil(FRows);
-    FreeAndNil(FMetaData);
+    FRows:=Nil
+    FMetaData:=Nil;
     end;
   if (FCurrentList<>FDefaultList) then
     FreeAndNil(FCurrentList)