mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-09 17:59:24 +01: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
|
for r := 0 to High(FUpdateBlobBuffers) do
|
||||||
FreeBlobBuffer(FUpdateBlobBuffers[r]);
|
FreeBlobBuffer(FUpdateBlobBuffers[r]);
|
||||||
|
|
||||||
|
SetLength(FBlobBuffers,0);
|
||||||
|
SetLength(FUpdateBlobBuffers,0);
|
||||||
|
|
||||||
FFirstRecBuf:= nil;
|
FFirstRecBuf:= nil;
|
||||||
SetLength(FFieldBufPositions,0);
|
SetLength(FFieldBufPositions,0);
|
||||||
|
|
||||||
@ -1077,7 +1080,8 @@ procedure TBufDataset.FreeBlobBuffer(var ABlobBuffer: PBlobBuffer);
|
|||||||
begin
|
begin
|
||||||
if not Assigned(ABlobBuffer) then Exit;
|
if not Assigned(ABlobBuffer) then Exit;
|
||||||
FreeMem(ABlobBuffer^.Buffer, ABlobBuffer^.Size);
|
FreeMem(ABlobBuffer^.Buffer, ABlobBuffer^.Size);
|
||||||
FreeMem(ABlobBuffer, SizeOf(TBlobBuffer));
|
Dispose(ABlobBuffer);
|
||||||
|
ABlobBuffer := Nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TBufBlobStream.Seek(Offset: Longint; Origin: Word): Longint;
|
function TBufBlobStream.Seek(Offset: Longint; Origin: Word): Longint;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user