RxFPC:fix mem leak in rxdbutils.DataSetLocateThrough - tnx. ssadragon

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6915 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2019-05-16 12:41:56 +00:00
parent 0361aa3588
commit 303eea9e94

View File

@ -458,7 +458,8 @@ var
Bookmark: TBookmark;
begin
Result := False;
with DataSet do begin
with DataSet do
begin
CheckBrowseMode;
if BOF and EOF then Exit;
end;
@ -470,7 +471,11 @@ begin
if SearchOrigin = rsdAll then
begin
Result := CompareRecord;
if Result then Exit;
if Result then
begin
Fields.Free;
Exit;
end;
end;
DataSet.DisableControls;