* Fix memory leak (patch by Marcos Douglas, ID )

git-svn-id: trunk@21149 -
This commit is contained in:
michael 2012-04-30 20:06:41 +00:00
parent 71a4778ba6
commit 1515e397bb

View File

@ -372,6 +372,7 @@ begin
else
FCurrentList:=Nil;
FreeAndNil(FDefaultList);
FreeAndNil(FFieldMapper);
FCurrentList:=Nil;
end;
@ -819,6 +820,7 @@ end;
procedure TBaseJSONDataSet.InternalOpen;
begin
FreeAndNil(FFieldMapper);
FFieldMapper:=CreateFieldMapper;
IF (FRows=Nil) then // opening from fielddefs ?
begin