mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 21:38:27 +02:00
JitClasses: Fixed double "raise" after 1f7accb9e2
"Fix missing Raise before Exception.Create. Issue ##40860. Patch by n7800."
(cherry picked from commit a23d636c90
)
This commit is contained in:
parent
d172d0d24a
commit
9826fdddb0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user