mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 10:59:10 +02:00
* reraise has to reset the ref. count to 0
git-svn-id: branches/debug_eh@41383 -
This commit is contained in:
parent
a8c8cc1890
commit
b1cc02e417
@ -1201,8 +1201,9 @@ procedure fpc_ReRaise; [public,alias:'FPC_RERAISE']; compilerproc;
|
||||
{$endif FPC_PSABIEH_CPLUSPLUSSUPPORT}
|
||||
else
|
||||
begin
|
||||
{ undo the begin_catch }
|
||||
dec(_ExceptObjectStack^.refcount);
|
||||
{ reraise has to reset the refcount, this is also what the
|
||||
generic exception handling does }
|
||||
_ExceptObjectStack^.refcount := 0;
|
||||
end;
|
||||
|
||||
{$ifdef excdebug}
|
||||
|
Loading…
Reference in New Issue
Block a user