mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:29:15 +02:00
* popaddrstack didn't release any memory, fixed
This commit is contained in:
parent
576071ddd6
commit
f0093ed32d
@ -124,6 +124,9 @@ end;
|
|||||||
|
|
||||||
Procedure PopAddrStack ;[Public, Alias : 'FPC_POPADDRSTACK'];
|
Procedure PopAddrStack ;[Public, Alias : 'FPC_POPADDRSTACK'];
|
||||||
|
|
||||||
|
var
|
||||||
|
hp : PExceptAddr;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$ifdef excdebug}
|
{$ifdef excdebug}
|
||||||
writeln ('In Popaddrstack');
|
writeln ('In Popaddrstack');
|
||||||
@ -134,7 +137,12 @@ begin
|
|||||||
halt (1);
|
halt (1);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
ExceptAddrStack:=ExceptAddrStack^.Next;
|
begin
|
||||||
|
dispose(ExceptAddrStack^.buf);
|
||||||
|
hp:=ExceptAddrStack^.Next;
|
||||||
|
dispose(ExceptAddrStack);
|
||||||
|
ExceptAddrStack:=hp;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Procedure PopObjectStack ;
|
Procedure PopObjectStack ;
|
||||||
@ -194,3 +202,9 @@ begin
|
|||||||
ExceptObjectstack:=Nil;
|
ExceptObjectstack:=Nil;
|
||||||
ExceptAddrStack:=Nil;
|
ExceptAddrStack:=Nil;
|
||||||
end;
|
end;
|
||||||
|
{
|
||||||
|
$Log$
|
||||||
|
Revision 1.9 1999-05-13 16:30:18 florian
|
||||||
|
* popaddrstack didn't release any memory, fixed
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user