mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 09:50:22 +02:00
* Clean FBlobBuffers and FUpdateBlobBuffers
git-svn-id: trunk@7538 -
This commit is contained in:
parent
2fe79903d6
commit
e01b1fc85a
@ -283,6 +283,9 @@ begin
|
||||
for r := 0 to High(FUpdateBlobBuffers) do
|
||||
FreeBlobBuffer(FUpdateBlobBuffers[r]);
|
||||
|
||||
SetLength(FBlobBuffers,0);
|
||||
SetLength(FUpdateBlobBuffers,0);
|
||||
|
||||
FFirstRecBuf:= nil;
|
||||
SetLength(FFieldBufPositions,0);
|
||||
|
||||
@ -1077,7 +1080,8 @@ procedure TBufDataset.FreeBlobBuffer(var ABlobBuffer: PBlobBuffer);
|
||||
begin
|
||||
if not Assigned(ABlobBuffer) then Exit;
|
||||
FreeMem(ABlobBuffer^.Buffer, ABlobBuffer^.Size);
|
||||
FreeMem(ABlobBuffer, SizeOf(TBlobBuffer));
|
||||
Dispose(ABlobBuffer);
|
||||
ABlobBuffer := Nil;
|
||||
end;
|
||||
|
||||
function TBufBlobStream.Seek(Offset: Longint; Origin: Word): Longint;
|
||||
|
Loading…
Reference in New Issue
Block a user