* reraise has to reset the ref. count to 0

git-svn-id: branches/debug_eh@41383 -
This commit is contained in:
florian 2019-02-19 22:17:27 +00:00
parent a8c8cc1890
commit b1cc02e417

View File

@ -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}