mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-23 17:19:38 +02:00
* Patch from Luiz Americo
- fixes a memory leak in TBlobField.GetAsString
This commit is contained in:
parent
7b3db009fc
commit
26a24e1488
@ -1823,8 +1823,8 @@ var
|
|||||||
Stream: TStream;
|
Stream: TStream;
|
||||||
begin
|
begin
|
||||||
Stream := GetBlobStream(bmRead);
|
Stream := GetBlobStream(bmRead);
|
||||||
if Stream<>nil then
|
if Stream <> nil then
|
||||||
With GetBlobStream(bmRead) do
|
With Stream do
|
||||||
try
|
try
|
||||||
SetLength(Result,Size);
|
SetLength(Result,Size);
|
||||||
ReadBuffer(Pointer(Result)^,Size);
|
ReadBuffer(Pointer(Result)^,Size);
|
||||||
@ -2190,7 +2190,11 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.26 2005-03-01 14:00:53 joost
|
Revision 1.27 2005-03-15 22:44:22 michael
|
||||||
|
* Patch from Luiz Americo
|
||||||
|
- fixes a memory leak in TBlobField.GetAsString
|
||||||
|
|
||||||
|
Revision 1.26 2005/03/01 14:00:53 joost
|
||||||
- Fix to avoid scientific format in TDBCFields from Jesus Reyes
|
- Fix to avoid scientific format in TDBCFields from Jesus Reyes
|
||||||
|
|
||||||
Revision 1.25 2005/02/28 16:19:07 joost
|
Revision 1.25 2005/02/28 16:19:07 joost
|
||||||
|
Loading…
Reference in New Issue
Block a user