mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 05:19:37 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user