JitClasses: Fixed double "raise" after 1f7accb9e2 "Fix missing Raise before Exception.Create. Issue ##40860. Patch by n7800."

This commit is contained in:
Martin 2024-08-02 23:30:49 +02:00
parent 06ecb6ff9d
commit a23d636c90

View File

@ -525,7 +525,7 @@ begin
{$IFDEF JIT_REFCNT_DEBUG}
debuglnEnter(['> TRefCountedJitReference.Destroy ',dbgs(self),' ' ]); try
{$ENDIF}
if FRefCount > 0 then raise
if FRefCount > 0 then
raise exception.Create('destroy while referrenced');
DoRefCountZero;