mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:49:23 +02:00
* Fix memory leak (patch by Marcos Douglas, ID #21900)
git-svn-id: trunk@21149 -
This commit is contained in:
parent
71a4778ba6
commit
1515e397bb
@ -372,6 +372,7 @@ begin
|
|||||||
else
|
else
|
||||||
FCurrentList:=Nil;
|
FCurrentList:=Nil;
|
||||||
FreeAndNil(FDefaultList);
|
FreeAndNil(FDefaultList);
|
||||||
|
FreeAndNil(FFieldMapper);
|
||||||
FCurrentList:=Nil;
|
FCurrentList:=Nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -819,6 +820,7 @@ end;
|
|||||||
|
|
||||||
procedure TBaseJSONDataSet.InternalOpen;
|
procedure TBaseJSONDataSet.InternalOpen;
|
||||||
begin
|
begin
|
||||||
|
FreeAndNil(FFieldMapper);
|
||||||
FFieldMapper:=CreateFieldMapper;
|
FFieldMapper:=CreateFieldMapper;
|
||||||
IF (FRows=Nil) then // opening from fielddefs ?
|
IF (FRows=Nil) then // opening from fielddefs ?
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user